mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 08:54:27 +01:00
cleanup repo
This commit is contained in:
3
examples/plausible/README.md
Normal file
3
examples/plausible/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# References
|
||||
|
||||
- https://github.com/plausible/analytics
|
||||
50
examples/plausible/docker-compose.yml
Normal file
50
examples/plausible/docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
version: "3.3"
|
||||
services:
|
||||
#mail:
|
||||
# image: bytemark/smtp
|
||||
# restart: always
|
||||
# container_name: plausible-smtp
|
||||
|
||||
plausible_db:
|
||||
# supported versions are 12, 13, and 14
|
||||
image: postgres:14-alpine
|
||||
restart: always
|
||||
container_name: plausible-db
|
||||
volumes:
|
||||
- /mnt/docker-volumes/plausible/database/:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
|
||||
plausible_events_db:
|
||||
container_name: plausible-events-db
|
||||
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
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 262144
|
||||
hard: 262144
|
||||
|
||||
plausible:
|
||||
container_name: 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
|
||||
- plausible_events_db
|
||||
# - mail
|
||||
ports:
|
||||
- 8000:8000 # WEB UI
|
||||
env_file:
|
||||
- plausible-conf.env
|
||||
#labels:
|
||||
# - traefik.enable=true
|
||||
# - traefik.http.routers.plausible.rule=Host(`plausible.example.com`)
|
||||
# - traefik.http.services.plausible.loadbalancer.server.port=8000
|
||||
# - traefik.docker.network=proxy
|
||||
# # Part for local lan services only
|
||||
# # - traefik.http.routers.plausible.middlewares=local-ipwhitelist@file
|
||||
6
examples/plausible/plausible-conf.env
Normal file
6
examples/plausible/plausible-conf.env
Normal file
@@ -0,0 +1,6 @@
|
||||
ADMIN_USER_EMAIL=john.doe@example.com # this is your admin user for login
|
||||
ADMIN_USER_NAME=superuser # this is your admin username
|
||||
ADMIN_USER_PWD=MyVeryStrongLoginPasswordForPlausible # change this
|
||||
BASE_URL=https://plausible.example.com:443 # change this
|
||||
SECRET_KEY_BASE=9meoKctVLEjZGm+CQwNbgZdAiWnw== # change this to a secure random secret
|
||||
DISABLE_REGISTRATION=true
|
||||
Reference in New Issue
Block a user