Use docker-compose.yml to run the app.
This variant publishes port 5000 and defines host.docker.internal for host access.
services:
web:
build: .
image: opensentry-command:latest
ports:
- "5000:5000"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
HOST: 0.0.0.0
PORT: 5000
SECRET_KEY: ${SECRET_KEY:-change-me}
volumes:
- ./config_store.json:/app/config_store.json
# - ./devices_store.json:/app/devices_store.json
restart: unless-stoppedCommands:
docker compose up -d --build
docker compose logs -f --tail=100 web- For OAuth2 on the host: use
http://host.docker.internal:8000as the base URL in app settings. Ensure your OAuth client allowshttp://localhost:5000/oauth2/callback.
If you need full multicast/mDNS, switch to host networking:
services:
web:
build: .
image: opensentry-command:latest
network_mode: host
environment:
HOST: 0.0.0.0
PORT: 5000
SECRET_KEY: ${SECRET_KEY:-change-me}
volumes:
- ./config_store.json:/app/config_store.json
restart: unless-stoppedOpen the printed address, e.g. http://127.0.0.1:5000