mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 08:54:27 +01:00
add env 'DOCKER_VOLUME_STORAGE' for volume path customization
This commit is contained in:
@@ -9,10 +9,10 @@ services:
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- '/mnt/docker-volumes/privatebin/data:/srv/data' # volume for persisted data pastes
|
||||
- '/mnt/docker-volumes/privatebin/configs/config.php:/srv/cfg/conf.php:ro' # volume for custom privatebin config
|
||||
#- '/mnt/docker-volumes/privatebin/configs/nginx.conf:/etc/nginx/nginx.conf:ro' # custom nginx container config to increase file upload size
|
||||
#- '/mnt/docker-volumes/privatebin/configs/php.ini:/etc/php81/conf.d/00-docker.ini:ro' # custom php container config to increase file upload size
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/data:/srv/data # volume for persisted data pastes
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/config.php:/srv/cfg/conf.php:ro # volume for custom privatebin config
|
||||
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/nginx.conf:/etc/nginx/nginx.conf:ro # custom nginx container config to increase file upload size
|
||||
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/php.ini:/etc/php81/conf.d/00-docker.ini:ro # custom php container config to increase file upload size
|
||||
restart: always
|
||||
#labels:
|
||||
# - traefik.enable=true
|
||||
|
||||
Reference in New Issue
Block a user