commit 9fb7712bfc851887e146bc26230f88c56512fd4a Author: Stefan Saibel Date: Sun Jul 7 15:45:12 2019 +0200 init repo diff --git a/Caddyfile_template b/Caddyfile_template new file mode 100644 index 0000000..9ab4302 --- /dev/null +++ b/Caddyfile_template @@ -0,0 +1,12 @@ + { + tls + gzip # compression + proxy / : { # root url + transparent # durch schleifen von trafic + websocket # nur wenn nötig + } + proxy /api : { # api url + transparent # durch schleifen von trafic + websocket # nur wenn nötig + } +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a11a457 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,22 @@ +version: '3' +services: + caddy: + image: abiosoft/caddy + restart: always + container_name: caddy + environment: + - ACME_AGREE=true + - ENABLE_TELEMETRY=false + ports: + - "443:443" + - "80:80" + volumes: + - path_to/etc/Caddyfile:/etc/Caddyfile + - paht_to/data/caddy/certs:/root/.caddy + networks: + - default + - docker_network # muss man erstellen, name nicht irelevant + +networks: + docker_network: # muss man erstellen, name nicht irelevant + external: true \ No newline at end of file