forked from inovex/scrumlr.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (95 loc) · 3.42 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.8'
services:
scrumlr-backend:
restart: always
build:
context: ./server/src/
dockerfile: Dockerfile
#image: ghcr.io/inovex/scrumlr.io/scrumlr-server
command:
- "/app/main"
- "-disable-check-origin"
environment:
SCRUMLR_SERVER_PORT: "${SCRUMLR_SERVER_PORT}"
SCRUMLR_SERVER_NATS_URL: "${SCRUMLR_SERVER_NATS_URL}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" # Added this line to ensure DB password is available
SCRUMLR_SERVER_DATABASE_URL: "postgres://scrumlr:${POSTGRES_PASSWORD}@postgres:5432/scrumlr?sslmode=disable" # Added to fix DB URL
SCRUMLR_PRIVATE_KEY: "${SCRUMLR_PRIVATE_KEY}"
#SCRUMLR_AUTH_GOOGLE_CLIENT_ID: "${GOOGLE_CLIENT_ID}"
#SCRUMLR_AUTH_GOOGLE_CLIENT_SECRET: "${GOOGLE_CLIENT_SECRET}"
#SCRUMLR_AUTH_MICROSOFT_CLIENT_ID: "${MICROSOFT_CLIENT_ID}"
#SCRUMLR_AUTH_MICROSOFT_CLIENT_SECRET: "${MICROSOFT_CLIENT_SECRET}"
#SCRUMLR_FEEDBACK_WEBHOOK_URL: "${WEBHOOK_URL}"
SCRUMLR_BASE_PATH: "${SCRUMLR_BASE_PATH}"
SCRUMLR_INSECURE: "${SCRUMLR_INSECURE}"
#SCRUMLR_AUTH_GITHUB_CLIENT_ID: "${GITHUB_CLIENT_ID}"
#SCRUMLR_AUTH_GITHUB_CLIENT_SECRET: "${GITHUB_CLIENT_SECRET}"
#SCRUMLR_AUTH_AZURE_AD_TENANT_ID: "${AZURE_AD_TENANT_ID}"
#SCRUMLR_AUTH_AZURE_AD_CLIENT_ID: "${AZURE_AD_CLIENT_ID}"
#SCRUMLR_AUTH_AZURE_AD_CLIENT_SECRET: "${AZURE_AD_CLIENT_SECRET}"
#SCRUMLR_AUTH_APPLE_CLIENT_ID: "${APPLE_CLIENT_ID}"
#SCRUMLR_AUTH_APPLE_CLIENT_SECRET: "${APPLE_CLIENT_SECRET}"
# SCRUMLR_CONFIG_PATH: "${SCRUMRL_CONFIG_PATH}"
# Redis variables (if you decide to use Redis instead of NATS)
#SCRUMLR_SERVER_REDIS_HOST: "${REDIS_HOST}"
#SCRUMLR_SERVER_REDIS_USERNAME: "${REDIS_USERNAME}"
#SCRUMLR_SERVER_REDIS_PASSWORD: "${REDIS_PASSWORD}"
ports:
- "8080:8080"
depends_on:
progres:
condition: service_healthy
nats:
condition: service_healthy
scrumlr-frontend:
restart: always
build:
context: .
dockerfile: Dockerfile
#image: ghcr.io/inovex/scrumlr.io/scrumlr-frontend
environment:
SCRUMLR_SERVER_URL: "${SCRUMLR_SERVER_URL}"
SCRUMLR_WEBSOCKET_URL: "${SCRUMLR_WEBSOCKET_URL}"
SCRUMLR_SHOW_LEGAL_DOCUMENTS: "${SCRUMLR_SHOW_LEGAL_DOCUMENTS}"
# Add missing frontend environment variables here
SCRUMLR_LISTEN_PORT: "${SCRUMLR_LISTEN_PORT}"
#SCRUMLR_ANALYTICS_DATA_DOMAIN: "${ANALYTICS_DATA_DOMAIN}"
#SCRUMLR_ANALYTICS_SRC: "${ANALYTICS_SRC}"
ports:
- "9090:8080"
depends_on:
progres:
condition: service_healthy
nats:
condition: service_healthy
postgres:
restart: always
image: postgres:16.3
environment:
POSTGRES_DB: scrumlr
POSTGRES_USER: scrumlr
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "scrumlr", "-U", "scrumlr" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 10
nats:
restart: always
image: nats:2.8.4
ports:
- "4222:4222"
- "8222:8222"
healthcheck:
test: [ "CMD", "ping", "nats", "-c", "2" ]
start_period: 5s
interval: 10s
timeout: 5s
retries: 10
volumes:
postgres_data: