-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.66 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
# Full stack: app + Postgres (persistent) + Redis (persistent).
# Secrets/config come from a sibling .env file (GITHUB_TOKEN, DEFAULT_TEAMS, OIDC_*).
services:
app:
build: .
restart: unless-stopped
ports:
- '${APP_PORT:-3000}:3000'
environment:
# data sources (internal network — not the host dev ports)
DATABASE_URL: postgres://teamhealth:${POSTGRES_PASSWORD:-teamhealth}@postgres:5432/teamhealth
REDIS_URL: redis://redis:6379
# GitHub
GITHUB_TOKEN: ${GITHUB_TOKEN:?set GITHUB_TOKEN in .env}
ALLOWED_ORGS: ${ALLOWED_ORGS:-linagora,cozy}
DEFAULT_TEAMS: ${DEFAULT_TEAMS:-}
GLOBAL_REPOS: ${GLOBAL_REPOS:-}
# web
ORIGIN: ${ORIGIN:-http://localhost:3000}
# auth (leave AUTH_DISABLED unset / false in prod and set OIDC_*)
AUTH_DISABLED: ${AUTH_DISABLED:-}
OIDC_ISSUER: ${OIDC_ISSUER:-}
OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:-}
OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET:-}
AUTH_SECRET: ${AUTH_SECRET:-}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: teamhealth
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-teamhealth}
POSTGRES_DB: teamhealth
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U teamhealth']
interval: 5s
timeout: 3s
retries: 12
redis:
image: redis:7-alpine
restart: unless-stopped
command: ['redis-server', '--appendonly', 'yes']
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata: