Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (89 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (89 loc) · 1.79 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
mysql:
image: mysql:8
container_name: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: trabalho
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
trabalho_net:
ipv4_address: 172.20.0.3
redis:
image: redis:alpine
container_name: redis
networks:
trabalho_net:
ipv4_address: 172.20.0.4
backend1:
build: ./backend
container_name: backend1
environment:
- SERVER_NAME=Servidor 1
depends_on:
- mysql
- redis
ports:
- "3000:3000"
networks:
trabalho_net:
ipv4_address: 172.20.0.10
backend2:
build: ./backend
container_name: backend2
environment:
- SERVER_NAME=Servidor 2
depends_on:
- mysql
- redis
networks:
trabalho_net:
ipv4_address: 172.20.0.11
backend3:
build: ./backend
container_name: backend3
environment:
- SERVER_NAME=Servidor 3
depends_on:
- mysql
- redis
networks:
trabalho_net:
ipv4_address: 172.20.0.12
dns:
build: ./dns
container_name: dns
ports:
- "53:53/udp"
- "53:53/tcp"
networks:
trabalho_net:
ipv4_address: 172.20.0.5
frontend1:
build: ./frontend
container_name: frontend1
ports:
- "80:80"
networks:
trabalho_net:
ipv4_address: 172.20.0.20
frontend2:
build: ./frontend
container_name: frontend2
networks:
trabalho_net:
ipv4_address: 172.20.0.21
frontend3:
build: ./frontend
container_name: frontend3
networks:
trabalho_net:
ipv4_address: 172.20.0.22
networks:
trabalho_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/24