wg-manager/compose.yaml

43 lines
842 B
YAML

services:
setup:
image: docker.io/busybox
volumes:
- vk:/vk
command: chmod 777 /vk
vk:
image: docker.io/valkey/valkey
environment:
- VALKEY_EXTRA_FLAGS=--unixsocket /vk/vk.socket --unixsocketperm 777
volumes:
- vk:/vk
depends_on:
- setup
wg-manager-worker:
image: wg-manager-worker
build:
context: .
dockerfile: Containerfile-worker
environment:
- CELERY_BROKER=redis+socket:///vk/vk.socket
- CELERY_BACKEND=redis+socket:///vk/vk.socket
depends_on:
- vk
network_mode: "host"
cap_add:
- NET_ADMIN
volumes:
- vk:/vk
wg-manager:
image: wg-manager
build:
context: .
dockerfile: Containerfile
ports:
- "4000:4000"
depends_on:
- vk
volumes:
- vk:/vk
volumes:
vk: