-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.e2e.yml
52 lines (52 loc) · 1.35 KB
/
docker-compose.e2e.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
services:
mongo:
image: mongo
restart: unless-stopped
volumes:
- "./mongo_data:/data/db"
- "./init/mongo/docker-entrypoint-initdb.js:/docker-entrypoint-initdb.d/docker-entrypoint-initdb.js"
env_file:
- ./.env.docker.mongo.development
ports:
- 27017:27017
postgres:
image: postgres:latest
ports:
- "5432:5432"
env_file: ./.env.docker.keycloak_postgres.development
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
keycloak:
platform: linux/amd64
image: antoineleguillou/keycloak:24.0
restart: unless-stopped
build:
context: .
dockerfile: keycloak.Dockerfile
ports:
- 8080:8080
env_file:
- ./.env.docker.keycloak.development
healthcheck:
test:
[
"CMD-SHELL",
"curl http://localhost:8080/health/ready --fail || exit 1",
]
interval: 30s
timeout: 180s
retries: 10
depends_on:
postgres:
condition: service_healthy
restart: true
volumes:
- ./keycloak_data:/opt/keycloak/data/
- ./init/themes/:/opt/keycloak/themes/
- ./init/backup/2024-09-06.json:/opt/keycloak/data/import/2024-09-06.json