-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.localtest.yml
More file actions
22 lines (19 loc) · 1.17 KB
/
compose.localtest.yml
File metadata and controls
22 lines (19 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Requires `BASIC_USERNAME` and `BASIC_PASSWORD` envs to be present
# The `BASIC_PASSWORD` can be generated with `openssl passwd -apr1 mysuperpassword`
services:
web:
environment:
- MW_SITE_SERVER=https://bugsigdb.traefik.localtest.me
varnish:
environment:
- VARNISH_SIZE=100m
labels:
# Traefik (keep the label synchronized between all the override files)
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.rule=Host(`bugsigdb.traefik.localtest.me`)
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.middlewares=crowdsec@file,mediawiki-ddos@file,${COMPOSE_PROJECT_NAME}-site-auth
- traefik.http.middlewares.${COMPOSE_PROJECT_NAME}-site-auth.basicauth.users=${BASIC_USERNAME?Variable BASIC_USERNAME not set}:${BASIC_PASSWORD?Variable BASIC_PASSWORD not set}
matomo:
labels:
# Traefik (keep the label synchronized between all the override files)
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-matomo.rule=Host(`bugsigdb.traefik.localtest.me`) && PathPrefix(`/matomo/`)
- traefik.http.routers.${COMPOSE_PROJECT_NAME}-matomo.middlewares=${COMPOSE_PROJECT_NAME}-matomo-stripprefix,${COMPOSE_PROJECT_NAME}-matomo-headers