32 lines
792 B
YAML
32 lines
792 B
YAML
---
|
|
- name: Create swag container
|
|
docker_container:
|
|
image: lscr.io/linuxserver/swag:latest
|
|
name: "{{ swag_host }}"
|
|
restart_policy: "unless-stopped"
|
|
networks:
|
|
- name: "{{ docker_net_name }}"
|
|
ipv4_address: 172.16.69.2
|
|
aliases: "{{ swag_host }}"
|
|
dns_servers:
|
|
- "{{ aya01_ip }}"
|
|
- "{{ pi_ip }}"
|
|
- 1.1.1.1
|
|
capabilities:
|
|
- NET_ADMIN
|
|
env:
|
|
PUID: "{{ puid }}"
|
|
PGID: "{{ pgid }}"
|
|
TZ: "{{ timezone }}"
|
|
URL: "{{ remote_domain }}"
|
|
VALIDATION: "http"
|
|
SUBDOMAINS: "{{ swag_subdomains }}"
|
|
DNSPLUGIN: "cloudflare"
|
|
EMAIL: "{{ swag_email }}"
|
|
ONLY_SUBDOMAINS: "false"
|
|
volumes:
|
|
- "{{ swag_config }}:/config"
|
|
ports:
|
|
- "{{ swag_port }}:443"
|
|
- 80:80 #optional
|