2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
name: proxy
|
|
|
|
|
|
|
|
services:
|
|
|
|
proxy:
|
|
|
|
build: ./proxy
|
|
|
|
container_name: proxy
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: ${BASE_DOMAIN}
|
2019-11-06 21:18:36 +01:00
|
|
|
environment:
|
|
|
|
- BASE_DOMAIN=${BASE_DOMAIN}
|
|
|
|
- TLS_EMAIL=self_signed
|
2019-11-05 20:58:51 +01:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
|
|
|
volumes:
|
|
|
|
- ./proxy/Caddyfile:/etc/Caddyfile:ro
|
2019-11-06 22:31:16 +01:00
|
|
|
- ./proxy/config:/etc/config:ro
|
2019-11-05 20:58:51 +01:00
|
|
|
- ./proxy/.ssh:/root/deploy_keys:ro
|
|
|
|
- /srv/proxy/.caddy:/home/.caddy
|
|
|
|
- /srv/proxy/srv:/srv
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
|
|
|
|
echo:
|
|
|
|
image: jwilder/whoami
|
|
|
|
container_name: echo
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: echo.${BASE_DOMAIN}
|
|
|
|
networks:
|
|
|
|
- proxy
|