2024-02-15 21:31:06 +00:00
|
|
|
services:
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: eugenci/papermerge:2.0.0
|
|
|
|
container_name: papermerge-app
|
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 8000
|
|
|
|
ports:
|
2024-02-16 21:15:08 +00:00
|
|
|
- 8888:8000
|
2024-02-15 21:31:06 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- worker
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/media_root:/opt/media
|
|
|
|
environment:
|
|
|
|
- DJANGO_SETTINGS_MODULE=config.settings.production
|
|
|
|
- POSTGRES_USER=dbuser
|
|
|
|
- POSTGRES_PASSWORD=dbpass
|
|
|
|
- POSTGRES_DB=dbname
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# - traefik.http.routers.papermerge.rule=Host(`papermerge.example.com`)
|
|
|
|
# - traefik.http.services.papermerge.loadbalancer.server.port=8000
|
|
|
|
# # Optional part for file upload max sizes
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
|
|
|
|
# # Optional part for traefik middlewares
|
|
|
|
# - traefik.http.routers.papermerge.middlewares=local-ipwhitelist@file,authelia@docker
|
|
|
|
|
|
|
|
db:
|
2024-10-01 08:22:38 +00:00
|
|
|
image: postgres:16-alpine
|
2024-02-15 21:31:06 +00:00
|
|
|
container_name: papermerge-db
|
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 5432
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/psql-data:/var/lib/postgresql/data/
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=dbuser
|
|
|
|
- POSTGRES_PASSWORD=dbpass
|
|
|
|
- POSTGRES_DB=dbname
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
redis:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: redis:6-alpine
|
2024-02-15 21:31:06 +00:00
|
|
|
container_name: papermerge-redis
|
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 6379
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/redis-data:/data
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
worker:
|
|
|
|
image: eugenci/papermerge-worker:v2.0.0
|
|
|
|
container_name: papermerge-worker
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/media_root:/opt/media
|
|
|
|
environment:
|
|
|
|
- DJANGO_SETTINGS_MODULE=config.settings.production
|
|
|
|
- POSTGRES_USER=dbuser
|
|
|
|
- POSTGRES_PASSWORD=dbpass
|
|
|
|
- POSTGRES_DB=dbname
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|