wip
This commit is contained in:
parent
82b2885576
commit
fd5840df94
5 changed files with 394 additions and 104 deletions
39
compose.yml
39
compose.yml
|
@ -9,26 +9,49 @@ services:
|
|||
- DEBUG_MODE=false
|
||||
volumes:
|
||||
- ./Caddyfile:/app/Caddyfile:ro
|
||||
# - ./nginx:/app/nginx:ro # Mount nginx config directory
|
||||
command: server
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- caddy-network
|
||||
# networks:
|
||||
# - caddy-network
|
||||
|
||||
# Agent mode (example)
|
||||
caddydb-agent:
|
||||
# Caddy Agent mode
|
||||
caddydb-caddy-agent:
|
||||
image: caddydb:latest
|
||||
volumes:
|
||||
- /path/to/host/Caddyfile:/app/Caddyfile:ro
|
||||
- /path/to/your/Caddyfile:/app/Caddyfile:ro
|
||||
environment:
|
||||
- API_KEY=${API_KEY}
|
||||
- DASHBOARD_URL=http://caddydb-server:5000/api/update
|
||||
- SERVER_NAME=caddy-server-1
|
||||
- SERVER_TYPE=caddy
|
||||
- CHECK_INTERVAL=60
|
||||
- VERIFY_SSL=false # Set to false if using self-signed certificates
|
||||
- VERIFY_SSL=false
|
||||
command: agent
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- caddy-network
|
||||
# networks:
|
||||
# - caddy-network
|
||||
# depends_on:
|
||||
# - caddydb-server
|
||||
|
||||
# Nginx Agent mode (example)
|
||||
caddydb-nginx-agent:
|
||||
image: caddydb:latest
|
||||
volumes:
|
||||
- /path/to/your/nginx/conf.d:/app/nginx:ro
|
||||
environment:
|
||||
- API_KEY=${API_KEY}
|
||||
- DASHBOARD_URL=http://caddydb-server:5000/api/update
|
||||
- SERVER_NAME=nginx-server-1
|
||||
- SERVER_TYPE=nginx
|
||||
- CHECK_INTERVAL=60
|
||||
- VERIFY_SSL=false
|
||||
command: agent
|
||||
restart: unless-stopped
|
||||
# networks:
|
||||
# - caddy-network
|
||||
# depends_on:
|
||||
# - caddydb-server
|
||||
|
||||
networks:
|
||||
caddy-network:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue