-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.18 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
version: "3.6"
services:
redis:
image: redis
networks:
- backend
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
scheduler:
image: scheduler:latest
networks:
- backend
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
source: /var/lib/docker/containers
target: /var/lib/docker/containers
environment:
NODE_ENV: dev
REDIS: "redis://redis:6379"
NETWORK_NAME: "test_backend"
REGISTRY_USERNAME: "username"
REGISTRY_PASSWORD: "password"
REGISTRY_SERVER: "registry_server"
STATSD_HOST: graphite
STATSD_PORT: 8125
STATSD_PREFIX: tasks.
configs:
- source: task_config
target: /opt/scheduler/config/default.json
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
deploy:
mode: global
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
networks:
backend:
attachable: true
configs:
task_config:
file: ./config/default.json