summaryrefslogtreecommitdiff
path: root/stacks/edge/compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/edge/compose.yml')
-rw-r--r--stacks/edge/compose.yml28
1 files changed, 9 insertions, 19 deletions
diff --git a/stacks/edge/compose.yml b/stacks/edge/compose.yml
index a1e71f4..7e88c95 100644
--- a/stacks/edge/compose.yml
+++ b/stacks/edge/compose.yml
@@ -1,30 +1,22 @@
-name: ${_STACK}
-
-volumes:
- data:
- name: ${_DATA_VOLUME}
- external: true
- config:
- name: ${_CONFIG_VOLUME}
- external: true
+name: ${_STACK_0}
networks:
- net:
- name: ${_NET}
+ edge-net:
+ name: ${_NET_0}
external: true
services:
- srv:
- container_name: ${_CONTAINER}
+ edge:
+ container_name: ${_CONTAINER_0}
image: caddy:latest
restart: unless-stopped
env_file:
- - .edge.env
+ - .run.env
- .env
networks:
- - net
+ - edge-net
cap_add:
- - NET_ADMIN # Allow Caddy to redefine memory limits based on host.
+ - NET_ADMIN # Allow Caddy to redefine memory limits based on host spec.
ports:
- 80:80
- 443:443
@@ -32,6 +24,4 @@ services:
volumes:
- ${_CADDYFILE:-./Caddyfile}:/etc/caddy/Caddyfile
- ${_WEBROOT:-.srv/}:/srv
- - data:/data
- - config:/config
- - /var/log/http/:/var/log/http # Bind for f2b.
+ - /var/log/http/:/var/log/http # Fail2Ban needs this.