-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
66 lines (62 loc) · 1.77 KB
/
docker-compose-prod.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
version: '3.8'
services:
node:
image: node:18-bullseye-slim
restart: always
container_name: micare_node
working_dir: /app
env_file:
- .env
environment:
- SKIP_ENV_VALIDATION=true
- NEXT_TELEMETRY_DISABLED=1
ports:
- '${OUTSIDEPORT}:3000'
volumes:
- ./:/app
depends_on:
- postgres
entrypoint: ['npm', 'run', 'start']
postgres:
image: postgres:13.2
restart: always
container_name: micare_postgres
ports:
- '5432:5432'
environment:
POSTGRES_MULTIPLE_DATABASES: ${POSTGRESQL_DB},${BOTPRESS_DB},mapseh
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRESQL_PASS}
volumes:
- ./postgres_data:/var/lib/postgresql/data
- ./multipledb:/docker-entrypoint-initdb.d
- ./postgresql.conf:/db_config/postgresql.conf
oidc:
restart: always
depends_on:
- postgres
container_name: oidc
image: keycloak/keycloak:${KEYCLOAK_VERSION}
ports:
- '${PORT_KEYCLOAK}:8080'
env_file:
- .env
entrypoint: ['/opt/keycloak/bin/kc.sh', 'start']
volumes:
- ./keycloak/keycloak.conf:/opt/keycloak/conf/keycloak.conf
- ./keycloak/themes:/opt/keycloak/themes
- ./keycloak/quarkus.properties:/opt/keycloak/conf/quarkus.properties
environment:
- KEYCLOAK_ADMIN=kcadmin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres/keycloak
- DB_DATABASE=${POSTGRESQL_DB}
- KC_DB_USERNAME=${POSTGRESQL_DB}
- KC_DB_PASSWORD=${POSTGRESQL_PASS}
- PROXY_ADDRESS_FORWARDING=true
- KC_HOSTNAME_STRICT=false
- KC_PROXY=edge
- KC_HTTP_ENABLED=true
- KC_HOSTNAME_URL=${KEYCLOAK_HOSTNAME}
- KC_HOSTNAME_ADMIN_URL=${KEYCLOAK_HOSTNAME}