2023-02-15 21:45:31 +00:00
services :
2024-11-04 12:08:51 +00:00
2023-02-15 21:45:31 +00:00
privatebin :
hostname : privatebin
container_name : privatebin
2024-06-10 07:15:16 +00:00
image : privatebin/nginx-fpm-alpine:stable
2023-02-15 21:45:31 +00:00
read_only : true # not in compose 3.0 documentation but appears supported based
ports :
- 8080 : 8080
2024-11-04 12:08:51 +00:00
expose :
- 8080
2023-02-15 21:45:31 +00:00
volumes :
2023-02-25 13:09:52 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/data:/srv/data # volume for persisted data pastes
2023-02-26 02:37:38 +00:00
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/config.php:/srv/cfg/conf.php:ro # volume for custom privatebin config; please place the config.php file here
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/nginx.conf:/etc/nginx/nginx.conf:ro # optional; custom nginx container config to increase file upload size
2023-11-07 13:03:37 +00:00
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/php.ini:/etc/php82/conf.d/00-docker.ini:ro # optional; custom php container config to increase file upload size
2023-02-15 21:45:31 +00:00
restart : always
#labels:
# - traefik.enable=true
# - traefik.http.routers.privatebin.rule=Host(`privatebin.example.com`)
# - traefik.http.services.privatebin.loadbalancer.server.port=8080
# - traefik.docker.network=proxy
# # Part for local lan services only
# # - traefik.http.routers.privatebin.middlewares=local-ipwhitelist@file
2023-11-07 13:07:25 +00:00
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=1000000000 # necessary to enable large file uploads
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=1000000000 # necessary to enable large file uploads
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=2000000000 # necessary to enable large file uploads
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=2000000000 # necessary to enable large file uploads