Work on fixing bugs and reformat

This commit is contained in:
2026-02-16 16:01:17 +00:00
parent 8ca1695fab
commit 3f82c27ab9
32 changed files with 1100 additions and 442 deletions

View File

@@ -271,47 +271,10 @@ 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"
# Watchers disabled - use manual restart for ur and scheduling services
# uWSGI auto-reload is enabled in uwsgi.ini for core code changes
# To restart ur after code changes: docker-compose restart ur
# To restart scheduling after code changes: docker-compose restart scheduling
redis:
image: redis