-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.admin.yml
92 lines (84 loc) · 2.82 KB
/
docker-compose.admin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "3.7"
x-restart-policy:
restart: &default-restart-policy unless-stopped
services:
traefik:
labels:
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.middlewares=auth
- traefik.http.middlewares.auth.basicauth.users=admin:${ACL_SEARCH_ADMIN_PASSWORD}
flower:
image: mher/flower:1.2
restart: *default-restart-policy
command: >
celery
--broker=amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672//
flower --host=0.0.0.0 --port=5555 --persistent=true --url_prefix=admin/flower
expose:
- 5555
env_file:
- ./rabbitmq/.env
depends_on:
- rabbitmq
labels:
- traefik.enable=true
- traefik.http.routers.flower.entrypoints=websecure
- traefik.http.routers.flower.tls=true
- traefik.http.routers.flower.tls.certresolver=le
- traefik.http.routers.flower.rule=PathPrefix(`/admin/flower`)
- traefik.http.routers.flower.middlewares=auth
dozzle:
image: amir20/dozzle:v4.0.1
restart: *default-restart-policy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
DOZZLE_NO_ANALYTICS: "true"
DOZZLE_LEVEL: DEBUG
DOZZLE_BASE: /admin/logs
labels:
- traefik.enable=true
- traefik.http.routers.dozzle.entrypoints=websecure
- traefik.http.routers.dozzle.tls=true
- traefik.http.routers.dozzle.tls.certresolver=le
- traefik.http.routers.dozzle.rule=PathPrefix(`/admin/logs`)
- traefik.http.routers.dozzle.middlewares=auth
plausible_db:
image: postgres:12
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
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
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
ulimits:
nofile:
soft: 262144
hard: 262144
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
env_file:
- ./plausible/.env
labels:
- traefik.enable=true
- traefik.http.routers.plausible.entrypoints=websecure
- traefik.http.routers.plausible.tls=true
- traefik.http.routers.plausible.tls.certresolver=le
- traefik.http.routers.plausible.rule=Host(`analytics.aclsear.ch`)
# - traefik.http.routers.plausible.middlewares=auth
volumes:
postgres-data:
driver: local
event-data:
driver: local