forked from github.com/plausible-hosting
Add Restart Ability to all the Containers
This commit is contained in:
parent
70a5eb11c6
commit
10e446eb2c
@ -6,6 +6,7 @@ services:
|
||||
|
||||
plausible_db:
|
||||
image: postgres:12
|
||||
restart: always
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
@ -13,6 +14,7 @@ services:
|
||||
|
||||
plausible_events_db:
|
||||
image: yandex/clickhouse-server:21.3.2.5
|
||||
restart: always
|
||||
volumes:
|
||||
- event-data:/var/lib/clickhouse
|
||||
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
||||
@ -24,6 +26,7 @@ services:
|
||||
|
||||
plausible:
|
||||
image: plausible/analytics:latest
|
||||
restart: always
|
||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"
|
||||
depends_on:
|
||||
- plausible_db
|
||||
|
Loading…
Reference in New Issue
Block a user