-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (117 loc) · 3.35 KB
/
docker-compose.yml
File metadata and controls
132 lines (117 loc) · 3.35 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
keycloak-postgres:
image: postgres:15.15
volumes:
- "keycloak-data:/var/lib/postgresql/data"
environment:
POSTGRES_DB: "keycloak"
POSTGRES_USER: "keycloak"
POSTGRES_PASSWORD: "password"
keycloak:
image: quay.io/keycloak/keycloak:26.4
environment:
KC_DB: "postgres"
KC_DB_URL: "jdbc:postgresql://keycloak-postgres:5432/keycloak"
KC_DB_USERNAME: "keycloak"
KC_DB_PASSWORD: "password"
KC_HOSTNAME_STRICT: false
KC_PROXY: edge
KC_HTTP_RELATIVE_PATH: /keycloak
KC_HTTP_ENABLED: true
KEYCLOAK_ADMIN: "admin"
KEYCLOAK_ADMIN_PASSWORD: "admin"
command: start --import-realm
depends_on:
- keycloak-postgres
volumes:
- "./keycloak:/opt/keycloak/data/import:ro"
postgres:
image: postgres:15.15
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
volumes:
- "postgres-data:/var/lib/postgresql/data"
redis:
image: redis:8.4
command: redis-server --requirepass password
influxdb:
image: influxdb:2.7
environment:
DOCKER_INFLUXDB_INIT_MODE: "setup"
DOCKER_INFLUXDB_INIT_USERNAME: "admin"
DOCKER_INFLUXDB_INIT_PASSWORD: "password"
DOCKER_INFLUXDB_INIT_ORG: "tasks"
DOCKER_INFLUXDB_INIT_BUCKET: "audit"
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "tasks-token-secret"
volumes:
- "influxdb-data:/var/lib/influxdb2"
backend:
image: ghcr.io/helpwave/tasks-backend:latest
environment:
DATABASE_HOSTNAME: "postgres"
DATABASE_NAME: "postgres"
DATABASE_USERNAME: "postgres"
DATABASE_PASSWORD: "password"
REDIS_HOSTNAME: "redis"
REDIS_PASSWORD: "password"
ISSUER_URI: "http://keycloak:8080/keycloak/realms/tasks"
PUBLIC_ISSUER_URI: "http://localhost/keycloak/realms/tasks"
CLIENT_ID: "tasks-backend"
CLIENT_SECRET: "tasks-secret"
ENV: "development"
SCAFFOLD_DIRECTORY: "/scaffold"
INFLUXDB_URL: "http://influxdb:8086"
INFLUXDB_TOKEN: "tasks-token-secret"
INFLUXDB_ORG: "tasks"
INFLUXDB_BUCKET: "audit"
volumes:
- "./scaffold:/scaffold:ro"
depends_on:
- postgres
- redis
- influxdb
web:
image: ghcr.io/helpwave/tasks-web:latest
environment:
RUNTIME_GRAPHQL_ENDPOINT: "http://localhost/graphql"
RUNTIME_ISSUER_URI: "http://localhost/keycloak/realms/tasks"
RUNTIME_REDIRECT_URI: "http://localhost/auth/callback"
RUNTIME_POST_LOGOUT_REDIRECT_URI: "http://localhost/"
RUNTIME_CLIENT_ID: "tasks-web"
volumes:
- "./feedback:/feedback"
- "profile-data:/profile"
depends_on:
- backend
proxy:
image: ghcr.io/helpwave/tasks-proxy:latest
environment:
KEYCLOAK_HOST: keycloak:8080
BACKEND_HOST: backend:80
FRONTEND_HOST: web:80
ports:
- "80:80"
depends_on:
- keycloak
- backend
- web
simulator:
image: ghcr.io/helpwave/tasks-simulator:latest
environment:
KEYCLOAK_URL: "http://keycloak:8080/keycloak"
API_URL: "http://backend:80/graphql"
REALM: "tasks"
USE_DIRECT_GRANT: "true"
USERNAME: "test"
PASSWORD: "test"
CLIENT_ID: "tasks-web"
depends_on:
- backend
- keycloak
volumes:
keycloak-data:
postgres-data:
influxdb-data:
profile-data: