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.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/stacks/edge/compose.yml b/stacks/edge/compose.yml
new file mode 100644
index 0000000..1fc33a7
--- /dev/null
+++ b/stacks/edge/compose.yml
@@ -0,0 +1,34 @@
+name: ${_STACK}
+
+volumes:
+ data:
+ name: ${_DATA_VOLUME}
+ external: true
+ config:
+ name: ${_CONFIG_VOLUME}
+ external: true
+
+networks:
+ net:
+ name: ${_NET}
+ external: true
+
+services:
+ srv:
+ container_name: ${_CONTAINER}
+ image: caddy:latest
+ restart: unless-stopped
+ env_file:
+ - .edge.env
+ - .env
+ networks:
+ - net
+ ports:
+ - 80:80
+ - 443:443
+ - 443:443/udp
+ volumes:
+ - ${_CADDYFILE:-./Caddyfile}:/etc/caddy/Caddyfile
+ - ${_WEBROOT:-.srv/}:/srv
+ - ${data:-.data/}:/data
+ - ${config:-.config/}:/config