-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.65 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
services:
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: archipulse
POSTGRES_USER: archipulse
POSTGRES_PASSWORD: archipulse
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U archipulse -d archipulse"]
interval: 5s
timeout: 5s
retries: 10
# Optional OIDC provider for local development.
# Enable with: docker compose --profile oidc up
dex:
profiles: [oidc]
image: ghcr.io/dexidp/dex:v2.45.1
restart: unless-stopped
volumes:
- ./deploy/local/dex.yaml:/etc/dex/config.yaml:ro
ports:
- "5556:5556"
command: dex serve /etc/dex/config.yaml
app:
build: .
restart: unless-stopped
depends_on:
db:
condition: service_healthy
env_file:
- path: .env
required: false # optional — values below are used when .env is absent
environment:
DATABASE_URL: postgres://archipulse:archipulse@db:5432/archipulse?sslmode=disable
PORT: 8080
# Auth — override in .env or set directly here for local dev.
# JWT_SECRET is required; the app will refuse to start without it.
JWT_SECRET: ${JWT_SECRET:-change-me-in-production}
ARCHIPULSE_BOOTSTRAP_EMAIL: ${ARCHIPULSE_BOOTSTRAP_EMAIL:-}
ARCHIPULSE_BOOTSTRAP_PASSWORD: ${ARCHIPULSE_BOOTSTRAP_PASSWORD:-}
# Optional OIDC (leave empty to disable)
OIDC_ISSUER_URL: ${OIDC_ISSUER_URL:-}
OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:-}
OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET:-}
OIDC_REDIRECT_URL: ${OIDC_REDIRECT_URL:-}
ports:
- "8080:8080"
volumes:
pgdata: