Skip to content

Instantly share code, notes, and snippets.

@optimistic5
Created October 31, 2019 18:50
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 optimistic5/1c9ccbf4753945af119e4ce63cb11adf to your computer and use it in GitHub Desktop.
Save optimistic5/1c9ccbf4753945af119e4ce63cb11adf to your computer and use it in GitHub Desktop.
docker-compose for syncthing with jwilder nginx-proxy
version: '3'
services:
syncthing:
image: syncthing/syncthing
restart: always
ports:
- "8384:8384"
- "22000:22000"
- "21027:21027/udp"
environment:
- VIRTUAL_HOST=YOUR_DOMAIN
- LETSENCRYPT_HOST=YOUR_DOMAIN
- LETSENCRYPT_EMAIL=info@YOUR_DOMAIN
- VIRTUAL_PORT=8384
- VIRTUAL_PROTO=https
volumes:
- "./data:/var/syncthing"
networks:
default:
external:
name: nginx-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment