-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
60 lines (56 loc) · 1.91 KB
/
docker-compose-dev.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
version: '3'
services:
smtp4dev:
image: rnwood/smtp4dev:v3
restart: always
ports:
# Change the number before : to the port the web interface should be accessible on
- '3000:80'
# Change the number before : to the port the SMTP server should be accessible on
- '25:25'
# Change the number before : to the port the IMAP server should be accessible on
- '143:143'
environment:
#Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=${SERVER_OPTIONS__HOSTNAME}
postgres:
image: postgres:13
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- 5432:5432
keycloak:
build:
context: .
# Spécifier la version de l'image keycloak
# Ce valeur peut changer pour des tests par exemple
# Mais, normalement, ça devrait être au minimum in sync avec la version dans le fichier version-to-deploy.json
args:
- IMG_VERSION=${IMG_VERSION}
- ENV=${ENV}
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_DB: ${KC_DB}
KC_DB_URL: ${KC_DB_URL}
KC_HOSTNAME: ${KC_HOSTNAME}
KC_HTTP_RELATIVE_PATH: ${KC_HTTP_RELATIVE_PATH}
KC_DB_USERNAME: ${KC_DB_USERNAME}
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KC_FEATURES: ${KC_FEATURES}
ENV: ${ENV}
KC_METRICS_ENABLED: ${KC_METRICS_ENABLED}
KC_HEALTH_ENABLED: ${KC_HEALTH_ENABLED}
KC_PROXY_HEADERS: ${KC_PROXY_HEADERS}
KC_HTTP_MANAGEMENT_PORT: ${KC_HTTP_MANAGEMENT_PORT}
ports:
- 9000:9000
- 8080:8080
depends_on:
- smtp4dev
- postgres
volumes:
- ./customization/themes/cqen/:/opt/keycloak/themes/cqen/