-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (63 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
70 lines (63 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.8"
services:
backend:
build:
context: ./backend_build/
depends_on:
- database
networks:
- backend
- database
deploy:
replicas: 3
links:
- database
restart: always
backend-lb:
build:
context: ./backend-lb_build/
depends_on:
- backend
networks:
- backend
restart: always
database:
image: mariadb:10.3.7
volumes:
- SampleDatabaseData:/var/lib/mysql
- ./database_build/mysql:/etc/mysql
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=DOCKERTEST
- MYSQL_ROOT_PASSWORD=qwerty1234
networks:
- database
restart: always
frontend:
build:
context: ./frontend_build/
networks:
- frontend
- backend
restart: always
links:
- backend-lb
deploy:
replicas: 3
frontend-lb:
build:
context: ./frontend-lb_build/
depends_on:
- frontend
networks:
- frontend
restart: always
ports:
- 80:35000
volumes:
SampleDatabaseData:
networks:
backend:
database:
frontend: