services:
  gmao:
    environment:
      GMAO_VERSION: ${GMAO_VERSION:-0.1.0-dev.11}
      GMAO_GUNICORN_FLAGS: --reload --reload-engine poll
      FLASK_ENV: development
      # Ce profil est servi en HTTP sur le réseau de test ; un cookie Secure
      # ne serait jamais renvoyé par le navigateur lors de la connexion.
      SESSION_COOKIE_SECURE: "0"
    volumes:
      - ./app_new:/app/app_new
      - ./migrations:/app/migrations
      - ./tests:/app/tests:ro
      - ./pytest.ini:/app/pytest.ini:ro
      - ./gmao_watchdog.py:/app/gmao_watchdog.py
      - ./ent_watchdog.py:/app/ent_watchdog.py
      - ./pronote_watchdog.py:/app/pronote_watchdog.py
      - ./watchdog_dnd.py:/app/watchdog_dnd.py
      - ./watchdog_gate.py:/app/watchdog_gate.py:ro
      - ./run_app_new.py:/app/run_app_new.py
      - ./wsgi.py:/app/wsgi.py
      - ./VERSION:/app/VERSION:ro
      - ./docker/entrypoint.sh:/app/entrypoint.sh:ro
      - ./docker/run_watchdog.sh:/app/run_watchdog.sh:ro
      - ./docker/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf:ro
      - ./docker/backup.py:/app/backup.py:ro
      - ./docker/backup_loop.py:/app/backup_loop.py:ro
