mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2025-10-03 00:46:18 +00:00
caddy
This commit is contained in:
33
Caddy/docker-compose.yaml
Normal file
33
Caddy/docker-compose.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
caddy:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- CLOUDFLARE_EMAIL=${CF_EMAIL}
|
||||
- CLOUDFLARE_API_TOKEN=${CF_API_TOKEN}
|
||||
- ACME_AGREE=true
|
||||
ports:
|
||||
- 2019:2019 # remove if you do not want admin API
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- caddy-config:/config
|
||||
- caddy-data:/data
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./index.html:/usr/share/caddy/index.html
|
||||
networks:
|
||||
- caddy # add other containers onto this network to use dns name
|
||||
|
||||
volumes:
|
||||
caddy-config:
|
||||
caddy-data:
|
||||
|
||||
# create this first before running the docker-compose - docker network create caddy
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
Reference in New Issue
Block a user