Skip to content

Instantly share code, notes, and snippets.

@thomasxd24
Last active June 1, 2020 08:01
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 thomasxd24/fd0940f77846c26007a9bcc9b4afdc6e to your computer and use it in GitHub Desktop.
Save thomasxd24/fd0940f77846c26007a9bcc9b4afdc6e to your computer and use it in GitHub Desktop.
version: '3'
services:
pritunl:
image: 'jippi/pritunl:latest'
privileged: true
ports:
- '1194:1194/udp'
- '1194:1194/tcp'
networks:
- traefik
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.pritunl.rule=Host(`pritunl.thomasxd24.com`)"
- "traefik.http.routers.pritunl.entrypoints=websecure"
- "traefik.http.routers.pritunl.tls.certresolver=myresolver"
- "traefik.http.services.pritunl.loadbalancer.server.port=443"
- "traefik.http.services.pritunl.loadbalancer.server.scheme=https"
- "traefik.docker.network=traefik"
volumes:
- 'pritunl_data:/var/lib/pritunl'
- 'pritunl_db:/var/lib/mongodb'
networks:
traefik:
external: true
volumes:
pritunl_data:
driver: local
pritunl_db:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment