forked from MTES-MCT/qualicharge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1022 Bytes
/
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
services:
postgresql:
image: timescale/timescaledb-ha:pg14-ts2.14-oss
env_file:
- env.d/postgresql
- env.d/api
healthcheck:
test:
- "CMD-SHELL"
- "pg_isready"
- "-d"
- "$${QUALICHARGE_DB_NAME}"
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: ./src/api
args:
DOCKER_UID: ${DOCKER_UID:-1000}
DOCKER_GID: ${DOCKER_GID:-1000}
user: ${DOCKER_USER:-1000}
image: "qualicharge:api"
ports:
- "8010:8000"
env_file:
- env.d/api
volumes:
- ./src/api:/app
depends_on:
- postgresql
- keycloak
keycloak:
image: quay.io/keycloak/keycloak:24.0
env_file:
- env.d/keycloak
command: start-dev
ports:
- "8080:8080"
volumes:
- ./bin/kc-init:/usr/local/bin/kc-init
# -- tools
dockerize:
image: jwilder/dockerize
curl:
image: curlimages/curl:8.8.0
user: ${DOCKER_USER:-1000}
volumes:
- .:/work