-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (63 loc) · 1.97 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
services:
ladesa-ro-sso-development:
hostname: devcontainer
container_name: ladesa-ro-sso-development
working_dir: /workspace
build:
context: ./
target: sso-development
command: tail -f /dev/null
volumes:
- ./:/workspace
ladesa-ro-sso:
container_name: ladesa-ro-sso
build:
context: ./
target: sso-builder
args:
- KEYCLOAK_EXTRA_ARGS=-Dkeycloak.profile.feature.scripts=enabled
entrypoint: /opt/keycloak/bin/kc.sh
command: start-dev --import-realm
env_file:
- .kc.env
volumes:
- ./services/sso/import:/opt/keycloak/data/import/
depends_on:
- ladesa-ro-sso-db
networks:
ladesa-net:
ports:
- 23032:8080
labels:
# ===================================================================
- "traefik.enable=true"
# ===================================================================
- "traefik.http.services.sso.loadbalancer.server.port=8080"
# ------------
- "traefik.http.routers.sso.rule=Host(`sso.ladesa.localhost`)"
- "traefik.http.routers.sso.entrypoints=websecure"
- "traefik.http.routers.sso.tls=true"
- "traefik.http.routers.sso.service=sso"
# ------------
- "traefik.http.routers.sso-insecure.rule=Host(`sso.ladesa.localhost`)"
- "traefik.http.routers.sso-insecure.entrypoints=web"
- "traefik.http.routers.sso-insecure.tls=false"
- "traefik.http.routers.sso-insecure.service=sso"
# ===================================================================
ladesa-ro-sso-db:
image: bitnami/postgresql:15
container_name: ladesa-ro-sso-db
volumes:
- "ladesa-ro-sso-db-data:/bitnami/postgresql"
- "./.devcontainer/volumes/db/scripts/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
env_file:
- .kc-db.env
networks:
ladesa-net:
# ports:
# - 23080:5432
networks:
ladesa-net:
external: true
volumes:
ladesa-ro-sso-db-data: