dograh/docker-compose.override.yaml
2026-06-15 07:43:37 +00:00

34 lines
1.2 KiB
YAML

# Auto-generated by setup_remote.sh (build mode).
# Overrides docker-compose.yaml to build api and ui images from local source
# instead of pulling them from a registry. Remove this file to revert to
# pulling prebuilt images.
#
# NOTE: also carries the POC pbx-net attachment (see api.networks below). If
# setup_remote.sh regenerates this file, re-add the api networks block and the
# external pbx-net declaration, otherwise dograh->VICIdial API calls will time out.
services:
api:
build:
context: .
dockerfile: api/Dockerfile
image: dograh-local/dograh-api:local
pull_policy: never
# POC: attach api to the VICIdial PBX LAN so its Python (upstream_pbx.py)
# can reach VICIdial's agent API at 10.10.10.15. Without this the
# ra_call_control HANGUP/TRANSFER calls time out. Survives recreate.
networks:
- app-network
- pbx-net
ui:
build:
context: .
dockerfile: ui/Dockerfile
image: dograh-local/dograh-ui:local
pull_policy: never
# pbx-net is created/managed outside this compose project (the LXD/PBX bridge),
# so reference it as external — compose attaches to it but won't create/destroy it.
networks:
pbx-net:
external: true