mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2026-04-02 19:25:37 +02:00
Update docker-compose.yml
This commit is contained in:
@@ -10,35 +10,55 @@ services:
|
|||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${PSQL_PASS:-password}
|
- POSTGRES_PASSWORD=${PSQL_PASS:-password}
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "PGPASSWORD='${PSQL_PASS:-password}' pg_isready -U '${PSQL_USER:-postgres}' -d postgres"]
|
||||||
|
start_period: 1m
|
||||||
#networks:
|
#networks:
|
||||||
# - proxy
|
# - proxy
|
||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
image: clickhouse/clickhouse-server:24.12-alpine
|
||||||
container_name: plausible-events-db
|
container_name: plausible-events-db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- CLICKHOUSE_UID=1000
|
- CLICKHOUSE_UID=1000
|
||||||
- CLICKHOUSE_GID=1000
|
- CLICKHOUSE_GID=1000
|
||||||
|
- CLICKHOUSE_SKIP_USER_SETUP=1
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-data:/var/lib/clickhouse
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-data:/var/lib/clickhouse
|
||||||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-logs:/var/log/clickhouse-server
|
||||||
- ${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-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
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile:
|
nofile:
|
||||||
soft: 262144
|
soft: 262144
|
||||||
hard: 262144
|
hard: 262144
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD-SHELL",
|
||||||
|
"wget --no-verbose --tries=1 -O - http://127.0.0.1:8123/ping || exit 1",
|
||||||
|
]
|
||||||
|
start_period: 1m
|
||||||
#networks:
|
#networks:
|
||||||
# - proxy
|
# - proxy
|
||||||
|
|
||||||
plausible:
|
plausible:
|
||||||
image: ghcr.io/plausible/community-edition:v2.1
|
image: ghcr.io/plausible/community-edition:v3.2.0
|
||||||
container_name: plausible
|
container_name: plausible
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/data:/var/lib/plausible
|
||||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||||
depends_on:
|
depends_on:
|
||||||
- plausible_db
|
plausible_db:
|
||||||
- plausible_events_db
|
condition: service_healthy
|
||||||
|
plausible_events_db:
|
||||||
|
condition: service_healthy
|
||||||
|
ulimits:
|
||||||
|
nofile:
|
||||||
|
soft: 65535
|
||||||
|
hard: 65535
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000 # WEB UI
|
- 8000:8000 # WEB UI
|
||||||
expose:
|
expose:
|
||||||
|
|||||||
Reference in New Issue
Block a user