Files
Pritunl-Fake-API/docker/docker-compose.yml
Amir Moradi de5076c218 fix: Files moved, docs updated and server updated:
* Moved files around for better consistency
* Simplified docker file for use
* Added a  arg to the server/setup.py script for more flexibility
* Improved the current docker build and compose for the fully patched pritunl.
2023-05-23 11:13:50 +01:00

37 lines
1.1 KiB
YAML

version: '3'
services:
mongodb:
image: mongo:latest
restart: always
volumes:
- ./mongodb:/data/db
pritunl:
# Use the following to build the image from source (assuming you're running inside the repository).
build:
context: ../server
dockerfile: ../docker/Dockerfile
args:
- API_SERVER_DOMAIN=${API_SERVER_DOMAIN:-}
restart: always
depends_on:
- mongodb
privileged: true
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
links:
- mongodb
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
# Under this port the Pritunl web interface will be exposed (for reverse proxies)
- 9700:9700
# The following are the two default ports for the tcp+udp servers (you may edit these as needed!)
- 1194:1194
- 1194:1194/udp
environment:
- TZ=UTC
- MONGODB_URI=mongodb://mongodb:27017/pritunl
# Also enable reverse proxie capabilities
- REVERSE_PROXY=true