-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1004 Bytes
/
docker-compose.yml
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
version: '3.3'
services:
app:
image: client
container_name: client
build: .
ports:
- 80:3000
environment:
- MONGO_URI=mongodb://mongo_db/sample
depends_on:
- db
networks:
- net3
volumes:
- type: volume
source: mydata
target: /data
volume:
nocopy: true
- type: bind
source: ./static
target: /opt/app/static
db:
image: mongo:3.0.15
container_name: mongo_db
volumes:
- "/var/run/postgres/postgres.sock:/var/run/postgres/postgres.sock"
- "dbdata:/var/lib/postgresql/data"
networks:
net3:
aliases:
- "mongo_db"
ipv4_address: 172.16.238.10
ipv6_address: 2001:3984:3989::10
volumes:
mydata:
dbdata:
networks:
net3:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.238.0/24
-
subnet: 2001:3984:3989::/64