-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 1 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-atrium}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-atrium}
POSTGRES_DB: ${POSTGRES_DB:-atrium}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-atrium}"]
interval: 5s
timeout: 5s
retries: 5
atrium:
image: vibralabs/atrium:latest
ports:
- "8080:8080"
environment:
DATABASE_URL: "postgresql://${POSTGRES_USER:-atrium}:${POSTGRES_PASSWORD:-atrium}@postgres:5432/${POSTGRES_DB:-atrium}"
BETTER_AUTH_SECRET: "${BETTER_AUTH_SECRET:-change-me-to-a-random-string-at-least-32-chars}"
# SECURE_COOKIES: "false" # Only if accessing over plain HTTP (no HTTPS).
# # A reverse proxy with HTTPS is strongly recommended.
volumes:
- uploads:/app/uploads
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata:
uploads: