-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (94 loc) · 2.21 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
89
90
91
92
93
94
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
networks:
- mongo
# # use it to administer the database in development if you want
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
networks:
- keycloak
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
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
networks:
- keycloak
depends_on:
postgres:
condition: service_healthy
restart: true
api:
image: antoineleguillou/iprotego-api:demo
build:
context: ./api
dockerfile: ./Dockerfile
networks:
- keycloak
- mongo
depends_on:
mongo:
condition: service_started
restart: true
keycloak:
condition: service_healthy
restart: true
env_file:
- .env.backend.development
ports:
- "3000:3000"
volumes:
- ./api_data/uploads:/usr/share/app/uploads
web:
image: antoineleguillou/iprotego-app:demo
depends_on:
api:
condition: service_started
restart: true
build:
context: ./app
dockerfile: ./dev.Dockerfile
ports:
- "3001:3000"
networks:
keycloak:
mongo: