-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (60 loc) · 1.02 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.9'
services:
dns:
build:
context: ./dns
dockerfile: Dockerfile
# volumes:
# - ./dns:/dns
stdin_open: true
tty: true
networks:
- default
web:
build:
context: ./web
dockerfile: Dockerfile
volumes:
- ./web:/web
stdin_open: true
tty: true
networks:
- default
api:
build:
context: ./api
dockerfile: Dockerfile
# volumes:
# - ./api:/api
stdin_open: true
tty: true
networks:
- default
peer:
build:
context: ./peer
dockerfile: Dockerfile
# volumes:
# - ./peer:/peer
stdin_open: true
tty: true
networks:
- default
depends_on:
- db
db:
container_name: mongodb
image: docker.uclv.cu/mongo
restart: always
env_file: ./peer/.env
volumes:
- mongo_data:/data/db
volumes:
mongo_data:
networks:
default:
ipam:
driver: default
config:
- subnet: 192.168.0.0/16
gateway: 192.168.0.1