-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (56 loc) · 1.05 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
version: "3.7"
services:
runs:
container_name: runs
build: .
env_file:
- ".env.docker"
healthcheck:
test: "curl localhost:8000/"
interval: "60s"
timeout: "3s"
start_period: "5s"
retries: 3
ports:
- "8000:8000"
volumes:
- .:/opt/
- /var/log:/var/log/
networks:
- runs-net
depends_on:
- redis
restart: unless-stopped
stop_grace_period: 3s
runs-worker:
container_name: runs-worker
build: .
command: bash worker.sh docker
env_file:
- ".env.docker"
volumes:
- .:/opt/
networks:
- runs-net
depends_on:
- redis
- runs
restart: unless-stopped
stop_grace_period: 3s
redis:
container_name: redis
image: redis:5.0.4-stretch
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- runs-net
restart: unless-stopped
stop_grace_period: 3s
networks:
runs-net:
volumes:
redis-data: {}