Fix some compose panel bugs and reload workers when changed

This commit is contained in:
2026-02-16 13:39:48 +00:00
parent 9ce50a3053
commit 8ca1695fab
7 changed files with 177 additions and 25 deletions

View File

@@ -271,6 +271,48 @@ services:
# memory: 0.25G
#network_mode: host
# Optional watcher service to restart the runtime router (UR) when core code changes.
# This runs the `docker/watch_and_restart.py` script inside the same image and
# will restart the `ur_gia` container when files under `/code/core` change.
watch_ur:
image: xf/gia:prod
container_name: watch_ur_gia
build:
context: .
args:
OPERATION: ${OPERATION}
command: sh -c '. /venv/bin/activate && python docker/watch_and_restart.py'
volumes:
- ${REPO_DIR}:/code
- ${REPO_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
- type: bind
source: /code/vrun
target: /var/run
environment:
WATCH_PATHS: "/code/core"
TARGET_CONTAINER: "ur_gia"
# Optional watcher service to restart the scheduling process when app code changes.
watch_scheduling:
image: xf/gia:prod
container_name: watch_scheduling_gia
build:
context: .
args:
OPERATION: ${OPERATION}
command: sh -c '. /venv/bin/activate && python docker/watch_and_restart.py'
volumes:
- ${REPO_DIR}:/code
- ${REPO_DIR}/docker/uwsgi.ini:/conf/uwsgi.ini
- ${APP_DATABASE_FILE}:/conf/db.sqlite3
- type: bind
source: /code/vrun
target: /var/run
environment:
WATCH_PATHS: "/code/app"
TARGET_CONTAINER: "scheduling_gia"
redis:
image: redis
container_name: redis_gia