77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
version: "3.9"
|
|
volumes:
|
|
HttpInjectorData:
|
|
MongoOFVp:
|
|
networks:
|
|
ofvp_network:
|
|
# enable_ipv6: true
|
|
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
|
|
# tty: true
|
|
privileged: false
|
|
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
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: server
|
|
image: ghcr.io/ofvp-project/server:local
|
|
depends_on:
|
|
- ofvp_mongodb
|
|
networks:
|
|
- "ofvp_network"
|
|
environment:
|
|
NODE_ENV: "development"
|
|
MongoDB_URL: "mongodb://ofvp_mongodb:27017"
|
|
ports:
|
|
- 3000:3000/tcp
|
|
- 51820:51820/udp
|
|
- 2200:22/tcp
|
|
volumes:
|
|
- /lib/modules/:/lib/modules/:ro
|
|
- HttpInjectorData:/root/OFVpServer
|
|
ofvp_webproxy:
|
|
image: ghcr.io/ofvp-project/webproxy:nightly
|
|
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:nightly
|
|
container_name: ofvp_badvpn
|
|
restart: on-failure
|
|
depends_on:
|
|
- ofvp_server
|
|
networks:
|
|
- "ofvp_network"
|
|
ports:
|
|
- 7300:7300/tcp |