forked from release-engineering/greenwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 2.02 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '2.1'
services:
dev:
build: .
user: ${DEV_USER_ID:-1000}
working_dir: /src
env_file: ["docker/dev.env"]
command: ["bash", "-c", "./docker/dev-command.sh"]
volumes:
- ./:/src:ro,z
- ./docker/home:/home/dev:rw,z
- ./docker/greenwave-settings.py:/etc/greenwave/settings.py:ro,z
- ./conf/policies/:/etc/greenwave/policies/:ro,z
- ./conf/subject_types/:/etc/greenwave/subject_types/:ro,z
ports:
- 8080:8080
depends_on:
- memcached
- resultsdb
- waiverdb
resultsdb-db:
image: postgres:9.5.2
restart: always
env_file: ["docker/resultsdb-db.env"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 30s
retries: 3
resultsdb:
build:
context: ../resultsdb
dockerfile: openshift/Dockerfile
working_dir: /code
command: ["bash", "-c", "/start.sh"]
volumes:
- ../resultsdb:/code:ro,z
- ./docker/home:/home/dev:rw,z
- ./docker/resultsdb-command.sh:/start.sh:ro,z
- ./docker/resultsdb-settings.py:/etc/resultsdb/settings.py:ro,z
- ./docker/resultsdb.conf:/etc/httpd/conf.d/resultsdb.conf:ro,z
ports:
- 5001:5001
depends_on:
resultsdb-db:
condition: service_healthy
waiverdb-db:
image: postgres:9.5.2
restart: always
env_file: ["docker/waiverdb-db.env"]
waiverdb:
build:
context: ../waiverdb
dockerfile: openshift/containers/waiverdb/Dockerfile
working_dir: /code
env_file: ["docker/waiverdb.env"]
command: ["bash", "-c", "/start.sh"]
volumes:
- ../waiverdb:/code:ro,z
- ./docker/home:/home/dev:rw,z
- ./docker/waiverdb-command.sh:/start.sh:ro,z
- ./docker/waiverdb-settings.py:/etc/waiverdb/settings.py:ro,z
- ./docker/client_secrets.json:/etc/secret/client_secrets.json:ro,z
ports:
- 5004:5004
user: '0'
depends_on:
- waiverdb-db
memcached:
image: "quay.io/factory2/memcached"
networks:
default:
driver: bridge