-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.29 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
version: '3'
services:
mongodb:
image: mongo
ports:
- "${MONGODB_PORT:-27017}:27017"
volumes:
- db:/data/db
deploy:
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 5
networks:
- webnet
booking-web-api:
build: ./BookingWebApi
image: booking-web-api
depends_on:
- mongodb
environment:
- BOOKING_WEB_API_ENV=docker
ports:
- "${API_PORT:-3000}:${BOOKING_WEB_API_PORT:-3000}"
deploy:
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 5
networks:
- webnet
booking-web-app:
build: ./BookingWebApp
image: booking-web-app
depends_on:
- booking-web-api
ports:
- "${APP_PORT:-4200}:4200"
deploy:
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 5
networks:
- webnet
docker-visualizer:
image: dockersamples/visualizer:stable
ports:
- "${DOCKER_VIS_PORT:-8080}:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
max_attempts: 5
networks:
- webnet
networks:
webnet:
volumes:
db: