39 lines
861 B
YAML
39 lines
861 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
swag:
|
||
|
image: lscr.io/linuxserver/swag:latest
|
||
|
container_name: swag
|
||
|
networks:
|
||
|
net: {}
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
environment:
|
||
|
- PUID={{ puid }}
|
||
|
- PGID={{ pgid }}
|
||
|
- TZ={{ timezone }}
|
||
|
- URL={{ remote_domain }}
|
||
|
- VALIDATION=http
|
||
|
- SUBDOMAINS=www, #optional
|
||
|
- CERTPROVIDER= #optional
|
||
|
- DNSPLUGIN=cloudflare #optional
|
||
|
- PROPAGATION= #optional
|
||
|
- EMAIL= #optional
|
||
|
- ONLY_SUBDOMAINS=false #optional
|
||
|
- EXTRA_DOMAINS= #optional
|
||
|
- STAGING=false #optional
|
||
|
volumes:
|
||
|
- "{{ swag_config }}:/config"
|
||
|
ports:
|
||
|
- "{{ swag_port }}:443"
|
||
|
- 80:80 #optional
|
||
|
restart: unless-stopped
|
||
|
|
||
|
networks:
|
||
|
net:
|
||
|
driver: bridge
|
||
|
ipam:
|
||
|
# driver: default
|
||
|
config:
|
||
|
- subnet: 172.16.69.0/24
|
||
|
gateway: 172.16.69.1
|