-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 840 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (42 loc) · 840 Bytes
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
version: '3.9'
services:
nginxcity:
build: ./city-nginx
container_name: nginxcity
networks:
dockernet:
ipv4_address: 172.20.0.2
dnscity:
build: ./city-dns
container_name: dnscity
networks:
dockernet:
ipv4_address: 172.20.0.3
ports:
- "5353:53/udp"
dbcity:
build: ./city-db
container_name: dbcity
environment:
POSTGRES_DB: dockertown
POSTGRES_USER: mayor
POSTGRES_PASSWORD: secret
networks:
dockernet:
ipv4_address: 172.20.0.4
proxycity:
build: ./city-proxy
container_name: proxycity
depends_on:
- nginxcity
ports:
- "8080:80"
networks:
dockernet:
ipv4_address: 172.20.0.5
networks:
dockernet:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16