2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2022-06-19 13:18:17 +02:00
|
|
|
# https://hub.docker.com/_/caddy
|
|
|
|
# https://caddyserver.com/docs/caddyfile
|
2019-11-10 21:50:43 +01:00
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
name: proxy
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy:
|
2023-08-09 21:51:27 +02:00
|
|
|
image: caddy:2-alpine
|
2019-11-05 20:58:51 +01:00
|
|
|
container_name: proxy
|
2022-12-10 18:16:50 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-11-05 20:58:51 +01:00
|
|
|
hostname: ${BASE_DOMAIN}
|
2019-11-06 21:18:36 +01:00
|
|
|
environment:
|
|
|
|
- BASE_DOMAIN=${BASE_DOMAIN}
|
2023-08-23 23:23:46 +02:00
|
|
|
- SECOND_MAIL_DOMAIN=${SECOND_MAIL_DOMAIN}
|
2019-11-26 21:13:34 +01:00
|
|
|
- TLS_EMAIL=${CADDY_TLS_EMAIL:-self_signed}
|
2020-02-02 18:21:44 +01:00
|
|
|
- CA_URL=${CADDY_CA_URL}
|
2019-11-05 20:58:51 +01:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
2022-06-07 22:54:30 +02:00
|
|
|
- '8448:8448' # matrix federation
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2022-06-19 13:18:17 +02:00
|
|
|
# config / data
|
|
|
|
- ./proxy/Caddyfile:/etc/caddy/Caddyfile:ro
|
|
|
|
- ${BASE_DIR:-/srv}/proxy/config:/config
|
|
|
|
- ${BASE_DIR:-/srv}/proxy/data:/data
|
2019-11-26 21:07:43 +01:00
|
|
|
# srv
|
2022-06-19 13:18:17 +02:00
|
|
|
- ./proxy/autoconfig:/srv/autoconfig:ro
|
|
|
|
- ./proxy/errorpages/dist:/srv/errorpages:ro
|
2022-06-19 23:46:55 +02:00
|
|
|
- ${BASE_DIR:-/srv}/proxy/srv/homepage:/srv/homepage:ro
|
|
|
|
- ${BASE_DIR:-/srv}/minecraft/ampdata/instances/Main/Minecraft/bluemap/web/:/srv/bluemap:ro
|
2023-08-24 03:14:06 +02:00
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/data/${PUBLIC_HTML_USER:-admin}/files/public_html:/srv/public_html:ro
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
|
|
|
|
echo:
|
|
|
|
image: jwilder/whoami
|
|
|
|
container_name: echo
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-12-05 22:37:25 +01:00
|
|
|
hostname: echo
|
|
|
|
domainname: ${BASE_DOMAIN}
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|