add env 'DOCKER_VOLUME_STORAGE' for volume path customization

This commit is contained in:
L4RM4ND
2023-02-25 14:09:52 +01:00
parent 1d2ab5133b
commit ce70d88893
70 changed files with 167 additions and 168 deletions

View File

@@ -11,7 +11,7 @@ services:
restart: always
container_name: plausible-db
volumes:
- /mnt/docker-volumes/plausible/database/:/var/lib/postgresql/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
@@ -20,9 +20,9 @@ services:
image: clickhouse/clickhouse-server:22.6-alpine
restart: always
volumes:
- /mnt/docker-volumes/plausible/event-data:/var/lib/clickhouse
- /mnt/docker-volumes/plausible/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- /mnt/docker-volumes/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-data:/var/lib/clickhouse
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
ulimits:
nofile:
soft: 262144