This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
compose.yaml
100 lines (93 loc) · 2.35 KB
/
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
services:
backend:
user: "${UID:?Set UID env variable to your user id}"
build:
context: .
target: dev
depends_on:
- mailhog
- db
environment:
- ENV=dev
- EMAIL_URL=smtp://mailhog:1025
- DJANGO_OIDC_USERNAME_CLAIM=preferred_username
- DJANGO_DATABASE_HOST=db
- DJANGO_DATABASE_PORT=5432
- STATIC_ROOT=/var/www/static
volumes:
- ./:/app
ports:
- 8000:8080
- 8081:8081
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: quay.io/keycloak/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
db:
image: postgres:14.4
ports:
- 5432:5432
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=timed
- POSTGRES_PASSWORD=timed
networks:
- timed.local
volumes:
dbdata:
networks:
timed.local: