mirror of
https://github.com/plausible/hosting.git
synced 2024-12-22 12:03:18 -06:00
Merge pull request #38 from navjotjsingh/restart
Add Restart Ability to all the Containers
This commit is contained in:
commit
dcd6f5d737
@ -6,6 +6,7 @@ services:
|
|||||||
|
|
||||||
plausible_db:
|
plausible_db:
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
@ -13,6 +14,7 @@ services:
|
|||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
image: yandex/clickhouse-server:21.3.2.5
|
image: yandex/clickhouse-server:21.3.2.5
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- event-data:/var/lib/clickhouse
|
- event-data:/var/lib/clickhouse
|
||||||
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
||||||
@ -24,6 +26,7 @@ services:
|
|||||||
|
|
||||||
plausible:
|
plausible:
|
||||||
image: plausible/analytics:latest
|
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"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"
|
||||||
depends_on:
|
depends_on:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
|
@ -10,6 +10,7 @@ services:
|
|||||||
|
|
||||||
geoip:
|
geoip:
|
||||||
image: maxmindinc/geoipupdate
|
image: maxmindinc/geoipupdate
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- GEOIPUPDATE_EDITION_IDS=GeoLite2-Country
|
- GEOIPUPDATE_EDITION_IDS=GeoLite2-Country
|
||||||
- GEOIPUPDATE_FREQUENCY=168 # update every 7 days
|
- GEOIPUPDATE_FREQUENCY=168 # update every 7 days
|
||||||
|
Loading…
Reference in New Issue
Block a user