Files
rogaining_srv/docker-compose.event-registration.yml

35 lines
945 B
YAML
Raw Normal View History

2025-09-06 06:15:35 +09:00
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