-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (67 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
68 lines (67 loc) · 1.47 KB
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
version: '3.3'
services:
db:
container_name: submit_db
restart: on-failure:10
image: postgres
environment:
POSTGRES_USER: submit
POSTGRES_PASSWORD: ""
volumes:
- db:/var/lib/postgresql/data
ports:
- "6000:5432"
mq:
container_name: submit_mq
image: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "4369:4369"
- "25672:25672"
submit_cs:
container_name: submit_cs
image: thelastpenguin/submit_cs
build:
context: ./submit
dockerfile: Dockerfile
command: "/docker/files/submit-cs-startup.sh"
#command: "tail -f /dev/null"
volumes:
- files:/docker/files
ports:
- "3000:3000"
- "8080:80"
depends_on:
- db
- mq
volumes:
- ./data/submit/logs:/home/submit/logs
- submit-files:/home/submit/submit-files
- ${SRC}
healthcheck:
test: bash -c 'sh /runtime_scripts/health_check.sh'
timeout: 1s
retries: 3
submit_worker:
container_name: submit_worker
image: thelastpenguin/submit_worker
build:
context: ./worker
dockerfile: Dockerfile
command: "/docker/files/worker-startup.sh"
#command: "tail -f /dev/null"
#volumes:
# - ./build_scripts:/build_scripts
# - ./files:/docker/files
#ports:
# - "3000:3000"
depends_on:
- db
- mq
- submit_cs
healthcheck:
test: bash -c '[ ! -S /home/worker1/worker.py ]'
volumes:
submit-files:
db: