Skip to content

Commit

Permalink
examples: add daemon docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Oct 29, 2023
1 parent c9b0781 commit e0e1597
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions examples/app-daemon/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: "3"

networks:
webmesh:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.1.0.0/24
gateway: 10.1.0.1
- subnet: 2001:db8:3200::/64
gateway: 2001:db8:3200::1

services:
daemon:
image: ${IMAGE:-ghcr.io/webmeshproj/node:latest}
build:
context: ../..
dockerfile: Dockerfile
networks:
webmesh:
ipv4_address: 10.1.0.2
ipv6_address: 2001:db8:3200::2
entrypoint:
- /webmesh-node
- --daemon.enabled=true
- --daemon.bind=[::]:8081
- --daemon.ui.enabled=true
- --daemon.ui.listen-address=[::]:8080
volumes:
- /dev/net/tun:/dev/net/tun
- /lib/modules:/lib/modules
cap_add: ["NET_ADMIN", "NET_RAW", "SYS_MODULE"]
ports:
- "8080:8080"
- "8081:8081"
sysctls:
- net.ipv6.conf.all.disable_ipv6=0

0 comments on commit e0e1597

Please sign in to comment.