Files
fm_be/docker-compose.test.yml
2026-07-16 22:16:45 +07:00

111 lines
2.5 KiB
YAML

services:
api:
# Reuses the staging image — test differs only by its .env + DB (managed at deploy)
image: mybitlab/wfm:be-staging
env_file:
- .env
environment:
HTTP_PORT: "8080"
APP_ENV: test
CONFIG_BASE_PATH: /opt/flight-manager/test
volumes:
- /opt/flight-manager/test/config.generated.json:/opt/flight-manager/test/config.generated.json:ro
- ./configs:/app/configs:ro
ports:
- 8092:8080
restart: unless-stopped
networks:
- fm-test
- db_net
extra_hosts:
- host.docker.internal:host-gateway
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test:
- CMD
- /app/healthcheck
- http://127.0.0.1:8080/health
interval: 30s
timeout: 3s
start_period: 20s
retries: 3
labels:
- "logging=enabled"
worker:
image: mybitlab/wfm:be-worker-staging
env_file:
- .env
environment:
QUEUE_WORKER_MONITOR_ADDR: 0.0.0.0:9090
WORKER_JOB: email
APP_ENV: test
CONFIG_BASE_PATH: /opt/flight-manager/test
volumes:
- /opt/flight-manager/test/config.generated.json:/opt/flight-manager/test/config.generated.json:ro
expose:
- 9090
restart: unless-stopped
networks:
- fm-test
- db_net
extra_hosts:
- host.docker.internal:host-gateway
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test:
- CMD
- /app/healthcheck
- http://127.0.0.1:9090/health
interval: 30s
timeout: 3s
start_period: 20s
retries: 3
labels:
- "logging=enabled"
file-worker:
image: mybitlab/wfm:be-staging-file-worker
env_file:
- .env
environment:
QUEUE_WORKER_MONITOR_ADDR: 0.0.0.0:9091
WORKER_JOB: file_processing
APP_ENV: test
CONFIG_BASE_PATH: /opt/flight-manager/test
volumes:
- /opt/flight-manager/test/config.generated.json:/opt/flight-manager/test/config.generated.json:ro
expose:
- 9091
restart: unless-stopped
networks:
- fm-test
- db_net
extra_hosts:
- host.docker.internal:host-gateway
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test:
- CMD
- /app/healthcheck
- http://127.0.0.1:9091/health
interval: 30s
timeout: 3s
start_period: 20s
retries: 3
labels:
- "logging=enabled"
networks:
fm-test:
external: true
db_net:
external: true