mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
5 years ago
|
version: '3.2'
|
||
|
services:
|
||
|
bootstrap-router:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: docker/compose/bootstrap.Dockerfile
|
||
|
image: bootstrap
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
devices:
|
||
|
- "/dev/net/tun:/dev/net/tun"
|
||
|
ports:
|
||
|
- target: 1090
|
||
|
protocol: udp
|
||
|
mode: host
|
||
|
- target: 1190
|
||
|
protocol: tcp
|
||
|
mode: host
|
||
|
volumes:
|
||
|
- bootstrap-dir:/root/.lokinet/
|
||
|
environment:
|
||
|
- LOKINET_NETID=docker
|
||
|
networks:
|
||
|
testing_net:
|
||
|
|
||
|
router:
|
||
|
depends_on:
|
||
|
- bootstrap-router
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: docker/compose/router.Dockerfile
|
||
|
image: router
|
||
|
devices:
|
||
|
- "/dev/net/tun:/dev/net/tun"
|
||
|
ports:
|
||
|
- target: 1090
|
||
|
protocol: udp
|
||
|
mode: host
|
||
|
- target: 1190
|
||
|
protocol: tcp
|
||
|
mode: host
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
volumes:
|
||
|
- bootstrap-dir:/bootstrap/
|
||
|
environment:
|
||
|
- LOKINET_NETID=docker
|
||
|
networks:
|
||
|
testing_net:
|
||
|
|
||
|
volumes:
|
||
|
bootstrap-dir:
|
||
|
|
||
|
networks:
|
||
|
testing_net:
|
||
|
ipam:
|
||
|
driver: default
|
||
|
config:
|
||
|
- subnet: 172.28.0.0/16
|