comparison docker/docker-compose.yml @ 0:b51518614818 default tip

New Files
author Pluto <meokcin@gmail.com>
date Tue, 03 Sep 2024 15:57:25 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b51518614818
1 version: '3'
2 services:
3 mongodb:
4 image: mongo:latest
5 restart: always
6 volumes:
7 - ./mongodb:/data/db
8
9 pritunl:
10 # Use the following to build the image from source (assuming you're running inside the repository).
11 build:
12 context: ../server
13 dockerfile: ../docker/Dockerfile
14 args:
15 - API_SERVER_DOMAIN=${API_SERVER_DOMAIN:-}
16 restart: always
17 depends_on:
18 - mongodb
19 privileged: true
20 sysctls:
21 - net.ipv6.conf.all.disable_ipv6=0
22 links:
23 - mongodb
24 volumes:
25 - /etc/localtime:/etc/localtime:ro
26 ports:
27 # Under this port the Pritunl web interface will be exposed (for reverse proxies)
28 - 9700:9700
29 # The following are the two default ports for the tcp+udp servers (you may edit these as needed!)
30 - 1194:1194
31 - 1194:1194/udp
32 environment:
33 - TZ=UTC
34 - MONGODB_URI=mongodb://mongodb:27017/pritunl
35 # Also enable reverse proxie capabilities
36 - REVERSE_PROXY=true