Add webserver config
This commit is contained in:
parent
3a17003bfd
commit
440f7a86bf
5
web/README.md
Normal file
5
web/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
### Start Caddy
|
||||
- `docker-compose up -d`
|
||||
|
||||
### Restart Caddy after Caddyfile change
|
||||
- `docker restart caddy`
|
14
web/config/Caddyfile
Normal file
14
web/config/Caddyfile
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
servers {
|
||||
protocols h1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rsca.vanrissenbeck.com {
|
||||
log
|
||||
|
||||
file_server {
|
||||
root /srv
|
||||
}
|
||||
}
|
15
web/docker-compose.yml
Normal file
15
web/docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
services:
|
||||
caddy:
|
||||
container_name: caddy
|
||||
image: caddy:latest
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
network_mode: host
|
||||
# ports:
|
||||
# - "80:80"
|
||||
# - "443:443"
|
||||
# - "443:443/udp"
|
||||
volumes:
|
||||
- ./www:/srv
|
||||
- ./config:/etc/caddy
|
||||
- ./data:/data
|
2
web/www/index.html
Normal file
2
web/www/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
Hello, World!
|
||||
|
Loading…
Reference in New Issue
Block a user