Skip to content

Instantly share code, notes, and snippets.

@mybigman
Forked from e-minguez/swag-podman
Created September 24, 2022 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mybigman/654e31baf7f74d99fe427cec960d1248 to your computer and use it in GitHub Desktop.
Save mybigman/654e31baf7f74d99fe427cec960d1248 to your computer and use it in GitHub Desktop.
swag-podman
```
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080
$ sudo firewall-cmd --zone=trusted --add-service=https --permanent
$ sudo firewall-cmd --zone=trusted --add-service=https
$ sudo firewall-cmd --zone=trusted --add-service=http --permanent
$ sudo firewall-cmd --zone=trusted --add-service=http
$ sudo firewall-cmd --zone=trusted --add-masquerade
$ mkdir -p ${HOME}/containers/swag/
$ podman run --name=swag --rm --cap-add=NET_ADMIN -e PUID=1000 -e PGID=1000 -e TZ=Europe/Madrid -e URL=minwi.xyz -e SUBDOMAINS=centos3 -e VALIDATION=http -e ONLY_SUBDOMAINS=true -p 8443:443 -p 8080:80 -v ${HOME}/containers/swag:/config:Z -d linuxserver/swag
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment