mirror of
https://github.com/plausible/hosting.git
synced 2024-12-22 12:03:18 -06:00
Update compose file
* Remove smtp container * Version pin plausible container to v1 * Update syntax to follow the [compose-spec](https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file) * Add container names
This commit is contained in:
parent
f768205710
commit
9a525feb8e
@ -1,18 +1,14 @@
|
|||||||
version: "3.3"
|
|
||||||
services:
|
services:
|
||||||
mail:
|
|
||||||
image: bytemark/smtp
|
|
||||||
restart: always
|
|
||||||
|
|
||||||
plausible_db:
|
plausible_db:
|
||||||
|
container_name: plausible_db
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=postgres
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
|
container_name: plausible_event_db
|
||||||
image: yandex/clickhouse-server:21.3.2.5
|
image: yandex/clickhouse-server:21.3.2.5
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
@ -23,24 +19,18 @@ services:
|
|||||||
nofile:
|
nofile:
|
||||||
soft: 262144
|
soft: 262144
|
||||||
hard: 262144
|
hard: 262144
|
||||||
|
|
||||||
plausible:
|
plausible:
|
||||||
image: plausible/analytics:latest
|
container_name: plausible_app
|
||||||
|
image: plausible/analytics:v1
|
||||||
restart: always
|
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
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
- mail
|
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
env_file:
|
env_file:
|
||||||
- plausible-conf.env
|
- plausible-conf.env
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
driver: local
|
|
||||||
event-data:
|
event-data:
|
||||||
driver: local
|
|
||||||
geoip:
|
|
||||||
driver: local
|
|
Loading…
Reference in New Issue
Block a user