-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.deployment.yml
63 lines (58 loc) · 1.47 KB
/
docker-compose.deployment.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.8"
services:
rabbitmq3:
container_name: "rabbitmq"
image: rabbitmq:3.8-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=myuser
- RABBITMQ_DEFAULT_PASS=mypassword
ports:
- '5672:5672'
- '15672:15672'
networks:
- video-service
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 30s
timeout: 10s
retries: 5
video-service:
container_name: videoservice
image: voidbgs/videoservice
ports:
- "7001:7001"
networks:
- video-service
restart: on-failure
depends_on:
- rabbitmq3
like-service:
container_name: likeservice
image: voidbgs/likeservice
ports:
- "7002:7002"
networks:
- video-service
restart: on-failure
depends_on:
- rabbitmq3
frontend-client:
container_name: frontendclient
image: voidbgs/frontendclient
ports:
- "80:80"
networks:
- video-service
restart: on-failure
depends_on:
- rabbitmq3
api-gateway:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- video-service
ports:
- "4000:4000"
networks:
video-service: