2019-08-25 14:17:20 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-08-25 15:27:22 -04:00
|
|
|
# Assumes pew-net exists
|
|
|
|
|
2019-08-25 14:17:20 -04:00
|
|
|
docker run \
|
|
|
|
--name nginx \
|
|
|
|
--detach \
|
|
|
|
--restart unless-stopped \
|
|
|
|
--env PUID=1000 \
|
|
|
|
--env PGID=1000 \
|
|
|
|
--env EMAIL=sysadmin@seaturtle.pw \
|
|
|
|
--env URL=seaturtle.pw \
|
2019-08-25 17:02:18 -04:00
|
|
|
--env SUBDOMAINS=airsonic,plex,syncthing,www \
|
2019-08-25 14:17:20 -04:00
|
|
|
--env VALIDATION=html \
|
|
|
|
--env TZ=US/Eastern \
|
|
|
|
--volume $PWD/config:/config:rw \
|
|
|
|
--volume $PWD/nginx.conf:/config/nginx/nginx.conf:ro \
|
|
|
|
--volume $PWD/site-confs:/config/nginx/site-confs:ro \
|
2019-08-31 18:51:01 -04:00
|
|
|
--volume $PWD/../syncthing/sync:/sync-docker:ro \
|
|
|
|
--volume /bigdata/files:/files-docker:ro \
|
|
|
|
--volume $PWD/syncthing-htpasswd:/config/nginx/syncthing-htpasswd:ro \
|
|
|
|
--volume $PWD/sync-htpasswd:/config/nginx/sync-htpasswd:ro \
|
2019-08-25 14:17:20 -04:00
|
|
|
--publish 10.42.0.203:80:80 \
|
|
|
|
--publish 10.42.0.203:443:443 \
|
|
|
|
--publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:80:80 \
|
|
|
|
--publish [2601:5c0:c100:6e65:96c6:91ff:feab:69e3]:443:443 \
|
2019-08-25 15:21:50 -04:00
|
|
|
--network pew-net \
|
2019-08-25 14:17:20 -04:00
|
|
|
linuxserver/letsencrypt:latest
|