-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
57 lines (55 loc) · 1.7 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
57 lines (55 loc) · 1.7 KB
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
# Production self-host overrides for docker-compose.yml
#
# Prerequisites:
# cp .env.production.example .env.production # fill credentials
#
# Start (Keycloak is on the `auth` profile in the base file):
# docker compose -f docker-compose.yml -f docker-compose.prod.yml --profile auth up -d --build
#
# Services: postgres, redis, keycloak (--profile auth), init, api.
# Mock channel adapters and MinIO stay on optional profiles (channels, storage).
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
args:
VITE_AUTH_ENABLED: 'true'
VITE_KEYCLOAK_URL: http://localhost:8080
VITE_KEYCLOAK_REALM: haip
VITE_KEYCLOAK_CLIENT_ID: haip-dashboard
env_file:
- .env.production
environment:
NODE_ENV: production
AUTH_ENABLED: 'true'
SERVE_DASHBOARD: 'true'
SERVE_BOOKING: 'true'
STRIPE_MODE: test
# Override demo-only opt-out; must not be 'true' in production.
HAIP_ALLOW_INSECURE: ''
KEYCLOAK_URL: http://keycloak:8080
DATABASE_URL: postgresql://haip:haip@postgres:5432/haip
REDIS_URL: redis://redis:6379
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
init:
condition: service_completed_successfully
keycloak:
condition: service_healthy
init:
build:
context: .
dockerfile: apps/api/Dockerfile
args:
VITE_AUTH_ENABLED: 'true'
VITE_KEYCLOAK_URL: http://localhost:8080
VITE_KEYCLOAK_REALM: haip
VITE_KEYCLOAK_CLIENT_ID: haip-dashboard
env_file:
- .env.production
environment:
DATABASE_URL: postgresql://haip:haip@postgres:5432/haip