Add docker-compose file for simple reverse proxy
Based on caddy-gen This will start a reverse proxy on port 80 and 443, which proxies to the plausible container. Note that it will clash with any existing reverse proxies on the host machine
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
version: "3.3"
|
||||
services:
|
||||
caddy-gen:
|
||||
container_name: caddy-gen
|
||||
image: "wemakeservices/caddy-gen:latest"
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- caddy-certificates:/data/caddy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
depends_on:
|
||||
- plausible
|
||||
|
||||
plausible:
|
||||
ports:
|
||||
- 8000:8000
|
||||
labels:
|
||||
virtual.host: "example.com" # change to your domain name
|
||||
virtual.alias: "www.example.com" # change to any aliases you use (or remove)
|
||||
virtual.port: "8000"
|
||||
virtual.tls-email: "[email protected]" # change to your email
|
||||
|
||||
volumes:
|
||||
caddy-certificates:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user