-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.26 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
services:
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
environment:
- SITE_HOST=${SITE_HOST:-localhost}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
depends_on:
- app
restart: unless-stopped
app:
build: .
environment:
- PAPERLESS_URL=${PAPERLESS_URL}
- DATABASE_URL=postgresql+asyncpg://paperless_webdav:paperless_webdav@db:5432/paperless_webdav
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- SECRET_KEY=${SECRET_KEY}
- AUTH_MODE=${AUTH_MODE:-paperless}
- COOKIE_SECURE=true
- LOG_FORMAT=console
# OIDC settings (only needed if AUTH_MODE=oidc)
- OIDC_ISSUER=${OIDC_ISSUER:-}
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-}
- OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=paperless_webdav
- POSTGRES_PASSWORD=paperless_webdav
- POSTGRES_DB=paperless_webdav
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U paperless_webdav"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata: