summaryrefslogtreecommitdiff
path: root/stacks/edge/compose.yml
blob: 7e88c955287d86866a753a4fba3ac04c48c75457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: ${_STACK_0}

networks:
  edge-net:
    name: ${_NET_0}
    external: true

services:
  edge:
    container_name: ${_CONTAINER_0}
    image: caddy:latest
    restart: unless-stopped
    env_file:
      - .run.env
      - .env
    networks:
      - edge-net
    cap_add:
      - NET_ADMIN # Allow Caddy to redefine memory limits based on host spec.
    ports:
      - 80:80
      - 443:443
      - 443:443/udp
    volumes:
      - ${_CADDYFILE:-./Caddyfile}:/etc/caddy/Caddyfile
      - ${_WEBROOT:-.srv/}:/srv
      - /var/log/http/:/var/log/http # Fail2Ban needs this.