-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.prod.yml
69 lines (62 loc) · 1.51 KB
/
docker-compose.prod.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"
services:
identidock:
image: ${DOCKER_REPO}:${IDENTIDOCK_IMAGE_PROD_TAG:-latest}
ports:
- "9090:9090"
- "9091:9091"
environment:
ENV: PROD
# env_file: docker-production.env
labels:
io.aroyd.service.container.name: "identidock"
io.aroyd.servcie.container.env: "production"
deploy:
mode: replicated
replicas: 4
placement:
constraints:
- node.role == worker
update_config:
parallelism: 2
delay: 30s
failure_action: pause
monitor: 20s
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 5
window: 120s
labels:
io.aroyd.service.task.name: "identidock"
io.aroyd.service.task.env: "production"
dnmonster:
image: amouat/dnmonster:1.0
redis:
image: redis:3.2.8-alpine
labels:
io.aroyd.service.container.name: "redis"
io.aroyd.servcie.container.env: "production"
deploy:
placement:
constraints:
- engine.labels.io.aroyd.machine.aws.az == b
update_config:
parallelism: 1
delay: 10s
failure_action: pause
monitor: 10s
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 5
window: 120s
volumes:
- redis_data_volume:${REDIS_DATA_DIR:-/data}
volumes:
redis_data_volume:
driver: rexray
driver_opts:
volumeType: "gp2"
size: "4"
availabilityZone: "ap-south-1b"