Files
rogaining_srv/docker-compose.event-registration.yml
2025-09-06 06:15:35 +09:00

35 lines
945 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
event-registration:
build:
context: .
dockerfile: Dockerfile.event_registration
container_name: rogaining_event_registration
volumes:
- ./CPLIST/input:/app/CPLIST/input:ro
- ./logs:/app/logs
environment:
- EVENT_CODE=${EVENT_CODE:-大垣2509}
- CSV_FILE=${CSV_FILE:-CPLIST/input/team2025.csv}
- BASE_URL=${BASE_URL:-http://web:8000}
- DRY_RUN=${DRY_RUN:-false}
networks:
- rogaining_network
depends_on:
- web
command: >
sh -c "
echo 'イベントユーザー登録処理を開始します...' &&
python register_event_users.py
--event_code $${EVENT_CODE}
--csv_file $${CSV_FILE}
--base_url $${BASE_URL}
$${DRY_RUN:+--dry_run}
"
# 既存のサービスwebなどを参照するためのネットワーク定義
networks:
rogaining_network:
external: true