-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.58 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
networks:
default:
name: hcu-model-builder-network
services:
# hcu-model-builder-backend:
# image: hcu-model-builder-backend
# build:
# context: .
# dockerfile: ./Dockerfile
# restart: always
# env_file: ./config/.env
# ports:
# - "3030:3030"
# networks:
# default:
# aliases:
# - backend
#setup postgres db
postgres:
image: postgres:16.3
restart: always
shm_size: 128mb
env_file: ./config/.env
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./scripts/postgres-init/init-keycloak-db.sh:/docker-entrypoint-initdb.d/init-keycloak-db.sh
- ./scripts/postgres-init/init-keycloak-db.sh:/docker-entrypoint-initdb.d/init-test-db.sh
networks:
default:
aliases:
- postgres
adminer:
image: adminer
restart: always
ports:
- 8088:8080
networks:
default:
aliases:
- adminer
keyycloak:
image: quay.io/keycloak/keycloak:25.0.4
restart: always
env_file: ./config/.env
environment:
KC_DB: postgres
KC_DB_URL: "jdbc:postgresql://postgres/keycloak"
KC_HOSTNAME: localhost
KC_HTTP_ENABLED: true
#KC_LOG_LEVEL: debug
command: ["start-dev"]
ports:
- 8081:8080
depends_on:
- postgres
networks:
default:
aliases:
- keycloak
redis:
image: redis:7.0.5
restart: always
ports:
- 6379:6379
volumes:
- ./data/redis:/data
networks:
default:
aliases:
- redis