-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
57 lines (54 loc) · 1.5 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
---
version: '2.1'
services:
dev:
build: .
working_dir: /code
env_file: ["docker/dev.env"]
command: ["bash", "-c", "/start.sh"]
volumes:
- ./:/code:ro,z
- ./docker/home:/home/dev:z
- ./docker/dev-command.sh:/start.sh:ro,z
- ./docker/settings.py:/etc/waiverdb/settings.py:ro,z
- ./docker/client_secrets.json:/etc/secret/client_secrets.json:ro,z
user: '0'
depends_on:
waiverdb-db:
condition: service_healthy
keycloak:
condition: service_healthy
network_mode: service:keycloak
healthcheck: &dev-healthcheck
test: >-
/code/docker/docker-entrypoint.sh python -c 'import requests;
requests.get("http://127.0.0.1:8080/health/live").raise_for_status();
requests.get("http://127.0.0.1:5004/healthcheck").raise_for_status();
'
interval: 1s
timeout: 5s
retries: 30
waiverdb-db:
image: postgres:14.7-alpine
restart: always
env_file: ["docker/waiverdb-db.env"]
healthcheck:
<<: *dev-healthcheck
test: "pg_isready -U postgres"
keycloak:
image: quay.io/keycloak/keycloak:24.0.2
ports:
- 127.0.0.1:5004:5004
- 127.0.0.1:8080:8080
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
command:
- start-dev
- --health-enabled=true
- --import-realm
volumes:
- ./docker/keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro,z
networks:
default:
driver: bridge