add initial version
This commit is contained in:
14
caddy/compose.yml
Executable file
14
caddy/compose.yml
Executable file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:${TAG:-alpine}
|
||||
container_name: caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- ${APIPORT:-2019}:2019
|
||||
volumes:
|
||||
- ${BASEDIR:-./files}/conf/:/etc/caddy/
|
||||
- ${BASEDIR:-./files}/data/:/data/
|
||||
#environment:
|
||||
# - CADDY_ADMIN='0.0.0.0'
|
||||
12
caddy/files/conf/Caddyfile
Executable file
12
caddy/files/conf/Caddyfile
Executable file
@@ -0,0 +1,12 @@
|
||||
# https://caddyserver.com/docs/caddyfile/options#admin
|
||||
# https://caddyserver.com/docs/json/admin/
|
||||
# https://caddyserver.com/docs/caddyfile
|
||||
{
|
||||
admin 0.0.0.0:2019
|
||||
auto_https off
|
||||
}
|
||||
|
||||
:80 {
|
||||
respond "Hello, World"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user