container-server/services/proxy/docker-compose.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

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:
image: caddy:2-alpine
2019-11-05 20:58:51 +01:00
container_name: proxy
restart: "${RESTART:-no}"
2019-11-06 21:18:36 +01:00
environment:
- BASE_DOMAIN=${BASE_DOMAIN}
- SECOND_MAIL_DOMAIN=${SECOND_MAIL_DOMAIN}
2019-11-26 21:13:34 +01:00
- TLS_EMAIL=${CADDY_TLS_EMAIL:-self_signed}
- 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
2023-10-29 20:22:54 +01:00
- ${BASE_DIR:-/srv}/games/.ampdata/instances/Minecraft01/Minecraft/bluemap/web/:/srv/bluemap:ro
- ${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
domainname: ${BASE_DOMAIN}
2019-11-05 20:58:51 +01:00
networks:
- proxy