71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
version: "3.9"
|
|
volumes:
|
|
data_save:
|
|
MongoOFVp:
|
|
networks:
|
|
ofvp_network:
|
|
services:
|
|
ofvp_mongodb:
|
|
container_name: ofvp_mongodb
|
|
restart: on-failure
|
|
image: mongo
|
|
volumes:
|
|
- MongoOFVp:/data/db
|
|
networks:
|
|
- "ofvp_network"
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
entrypoint:
|
|
- "mongod"
|
|
- "--bind_ip_all"
|
|
- "--quiet"
|
|
- "--logpath"
|
|
- "/dev/null"
|
|
ofvp_server:
|
|
container_name: ofvp_server
|
|
restart: on-failure
|
|
privileged: true
|
|
sysctls:
|
|
net.ipv4.conf.all.src_valid_mark: 1
|
|
net.ipv6.conf.all.disable_ipv6: 0
|
|
net.ipv6.conf.all.forwarding: 1
|
|
net.ipv4.ip_forward: 1
|
|
image: ghcr.io/ofvp-project/server:latest
|
|
depends_on:
|
|
- ofvp_mongodb
|
|
networks:
|
|
- "ofvp_network"
|
|
environment:
|
|
MongoDB_URL: "mongodb://ofvp_mongodb:27017"
|
|
ports:
|
|
- 3000:3000/tcp
|
|
- 51820:51820/udp
|
|
- 2222:22/tcp
|
|
- 2200:22/tcp
|
|
volumes:
|
|
- /lib/modules/:/lib/modules/
|
|
- data_save:/root/OFVpServer
|
|
ofvp_webproxy:
|
|
image: ghcr.io/ofvp-project/webproxy:latest
|
|
container_name: ofvp_webproxy
|
|
restart: on-failure
|
|
depends_on:
|
|
- ofvp_server
|
|
networks:
|
|
- "ofvp_network"
|
|
ports:
|
|
- 80:80/tcp
|
|
command:
|
|
- "--ssh"
|
|
- "ofvp_server:22"
|
|
ofvp_badvpn:
|
|
image: ghcr.io/ofvp-project/badvpn:latest
|
|
container_name: ofvp_badvpn
|
|
restart: on-failure
|
|
depends_on:
|
|
- ofvp_server
|
|
networks:
|
|
- "ofvp_network"
|
|
ports:
|
|
- 7300:7300/tcp |