lokinet/docker/compose/docker-compose.yml

88 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-12 19:13:42 +00:00
version: '3.4'
2019-08-05 09:33:23 +00:00
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
- target: 1190
protocol: tcp
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:
2019-08-26 23:29:17 +00:00
client:
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
- target: 53
protocol: tcp
mode: host
cap_add:
- NET_ADMIN
volumes:
- bootstrap-dir:/bootstrap/
environment:
- LOKINET_NETID=docker
networks:
testing_net:
2019-08-05 09:33:23 +00:00
volumes:
bootstrap-dir:
networks:
testing_net:
2019-08-12 19:13:42 +00:00
driver: bridge
internal: true
2019-08-05 09:33:23 +00:00
ipam:
driver: default
config:
- subnet: 172.28.0.0/16