-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
88 lines (83 loc) · 2.63 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
80
81
82
83
84
85
86
87
88
services:
api:
build:
dockerfile: ./lab-server/Dockerfile
context: ../
network_mode: host
environment:
- PORT=${PORT}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- KEYCLOAK_AUTH_SERVER_URL=${KEYCLOAK_AUTH_SERVER_URL}
- KEYCLOAK_REALM=${KEYCLOAK_REALM}
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID}
- KEYCLOAK_SECRET=${KEYCLOAK_SECRET}
- MINIO_PORT=${MINIO_PORT}
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
depends_on:
- lab-server-db
profiles:
- production
restart: unless-stopped
lab-server-db:
image: postgres:13
volumes:
- lab_server_db:/var/lib/postgresql/data
ports:
- ${DB_PORT}:5432
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
restart: unless-stopped
keycloak:
image: quay.io/keycloak/keycloak:25.0.1
environment:
KC_DB: postgres
KC_DB_URL_HOST: keycloak-db
KC_DB_URL_DATABASE: ${KEYCLOAK_DB_NAME}
KC_DB_USERNAME: ${KEYCLOAK_DB_USER}
KC_DB_PASSWORD: ${KEYCLOAK_DB_PASS}
KEYCLOAK_ADMIN: ${KEYCLOAK_USER}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_PASS}
KC_HTTP_MANAGEMENT_PORT: 9000
KC_HEALTH_ENABLED: true
command: start-dev
ports:
- ${KEYCLOAK_PORT}:8080
- ${KEYCLOAK_MANAGEMENT_PORT}:9000
depends_on:
- keycloak-db
restart: unless-stopped
keycloak-db:
image: postgres:13
volumes:
- keycloak_db:/var/lib/postgresql/data
ports:
- 25433:5432
environment:
- POSTGRES_USER=${KEYCLOAK_DB_USER}
- POSTGRES_PASSWORD=${KEYCLOAK_DB_PASS}
- POSTGRES_DB=${KEYCLOAK_DB_NAME}
restart: unless-stopped
minio:
image: minio/minio
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
- minio_db:/data
ports:
- ${MINIO_PORT}:9000
- ${MINIO_CONSOLE_PORT}:9001
command: server /data --console-address ":9001"
restart: unless-stopped
volumes:
lab_server_db:
minio_db:
keycloak_db: