-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·42 lines (38 loc) · 1.11 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
# Installation: https://github.com/paperless-ngx/paperless-ngx/blob/main/docker/compose/docker-compose.postgres.yml
services:
broker:
image: redis:7
container_name: paperless-ngx-redis
restart: unless-stopped
volumes:
- redisdata:/data
db:
image: postgres:16
container_name: paperless-ngx-db
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_DB=paperless
- POSTGRES_USER=paperless
- POSTGRES_PASSWORD=paperless
paperless-ngx:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- db
- broker
ports:
- '8000:8000'
volumes:
- /opt/appdata/paperless-ngx/data:/usr/src/paperless/data
- /opt/appdata/paperless-ngx/media:/usr/src/paperless/media
- /opt/appdata/paperless-ngx/export:/usr/src/paperless/export
- /opt/appdata/paperless-ngx/consume:/usr/src/paperless/consume
env_file: .env
environment:
- PAPERLESS_REDIS=redis://paperless-ngx-redis:6379
- PAPERLESS_DBHOST=db
volumes:
pgdata: {}
redisdata: {}