-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
113 lines (105 loc) · 2.27 KB
/
docker-compose.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.7'
services:
rabbitmq:
image: rabbitmq:3-management-alpine
hostname: rabbitmq-service
container_name: rabbitmq
# volumes:
# - /.docker/rabbitmq/etc/:/etc/rabbitmq/
# - /.docker/rabbitmq/data/:/var/lib/rabbitmq/
# - /.docker/rabbitmq/logs/:/var/log/rabbitmq/
ports:
- "5672:5672"
- "15672:15672"
restart: on-failure
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 10s
timeout: 10s
retries: 5
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
cloudservice:
image: ${REPO}/pixelgram_cloud_service:${TAG}
hostname: cloud-service
ports:
- "5004:5004"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
userservice:
image: ${REPO}/pixelgram_user_service:${TAG}
hostname: cloud-service
ports:
- "5003:5003"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
gatewayservice:
image: ${REPO}/pixelgram_gateway_service:${TAG}
hostname: gateway-service
ports:
- "5000:5000"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
metadataservice:
image: ${REPO}/pixelgram_metadata_service:${TAG}
hostname: metadata-service
ports:
- "5006:5006"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
imageservice:
image: ${REPO}/pixelgram_image_service:${TAG}
hostname: image-service
ports:
- "5005:5005"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
ui:
image: ${REPO}/pixelgram_ui_service:${TAG}
hostname: pixelgramui
ports:
- "3000:3000"
tty: true
restart: on-failure
networks:
- pixelgram
deploy:
replicas: 1
restart_policy:
condition: on-failure
networks:
pixelgram: