scripts/vps/services/web/docker-compose.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2019-03-16 20:59:25 -04:00
version: '3'
services:
letsencrypt:
restart: unless-stopped
image: linuxserver/letsencrypt
cap_add:
- NET_ADMIN
environment:
PUID: 1000
PGID: 1000
EMAIL: sysadmin@seaturtle.pw
# URL field must be working since nginx only starts if letsencrypt works
URL: seaturtle.pw
2019-03-17 10:06:10 -04:00
SUBDOMAINS: madone
2019-03-16 22:47:46 -04:00
EXTRA_DOMAINS: www.paul.walko.org,paul.walko.org
2019-03-16 20:59:25 -04:00
VALIDATION: html # TODO Switch to dns + gandi api once pr is merged
TZ: America/New_York
volumes:
# nginx persistent storage
- /home/joe/docker/nginx/config:/config
# RO settings
- ./htpasswd:/secrets/htpasswd # Create once deployed
- ./nginx.conf:/config/nginx/nginx.conf:ro
- ./ssl.conf:/config/nginx/ssl.conf:ro
- ./site-confs:/config/nginx/site-confs:ro
- ./jail.local:/config/jail2ban/jail.local:ro
2019-03-16 21:53:28 -04:00
# etc files
- /home/joe/docker/syncthing/sync:/sync:ro
2019-03-16 20:59:25 -04:00
ports:
2019-03-16 21:53:28 -04:00
- 10.21.2.155:80:80
- 10.21.2.155:443:443
- 2001:bc8:4728:8d0d::1:80:80
- 2001:bc8:4728:8d0d::1:443:443
2019-03-16 20:59:25 -04:00
syncthing:
restart: unless-stopped
image: linuxserver/syncthing
environment:
PUID: 1000
PGID: 1000
TZ: America/Eastern
UMASK_SET: <022>
volumes:
- /home/joe/docker/syncthing/config:/config
- /home/joe/docker/syncthing/sync:/sync
ports:
- 22000:22000
- 21027:21027/udp