add docker compose

This commit is contained in:
Jimmy 2021-07-03 11:10:08 +00:00
parent 2c6ef6ac5a
commit 993ddd65ce
1 changed files with 27 additions and 0 deletions

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: '3.7'
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
labels: # Global options
caddy.email: ${EMAIL}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
networks:
- caddy
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
caddy:
name: caddy
volumes:
caddy_data: {}