-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.override.yml
72 lines (67 loc) · 1.95 KB
/
docker-compose.override.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
version: "3.7"
services:
backend:
build:
context: .
args:
INSTALL_DEV_DEPENDENCIES: "true"
depends_on:
- mailhog
environment:
- PYTHONDONTWRITEBYTECODE=1
- EMAIL_URL=smtp://mailhog:1025
- DJANGO_OIDC_USERNAME_CLAIM=preferred_username
volumes:
- ./:/app
command: /bin/sh cmd.sh --autoreload --static
ports:
- "81:81"
networks:
- timed.local
frontend:
image: ghcr.io/adfinis/timed-frontend:latest
ports:
- 4200:80
environment:
- TIMED_SSO_CLIENT_HOST=http://timed.local/auth/realms/timed/protocol/openid-connect
- TIMED_SSO_CLIENT_ID=timed-public
networks:
- timed.local
keycloak:
image: jboss/keycloak:10.0.1
volumes:
- ./dev-config/keycloak-config.json:/etc/keycloak/keycloak-config.json:rw
depends_on:
- db
environment:
- DB_VENDOR=postgres
- DB_ADDR=db
- DB_USER=timed
- DB_DATABASE=timed
- DB_PASSWORD=timed
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
# start keycloak with the following command to perform an export of the `timed` realm.
#command: ["-Dkeycloak.migration.action=export", "-Dkeycloak.migration.realmName=timed", "-Dkeycloak.migration.provider=singleFile", "-Dkeycloak.migration.file=/etc/keycloak/keycloak-config.json", "-b", "0.0.0.0"]
command: ["-Dkeycloak.migration.action=import", "-Dkeycloak.migration.provider=singleFile", "-Dkeycloak.migration.file=/etc/keycloak/keycloak-config.json", "-b", "0.0.0.0"]
networks:
- timed.local
proxy:
image: nginx:1.17.10-alpine
ports:
- 80:80
volumes:
- ./dev-config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
timed.local:
aliases:
- timed.local
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
environment:
- MH_UI_WEB_PATH=mailhog
networks:
- timed.local