checkin status tool
This commit is contained in:
34
docker-compose.event-registration.yml
Normal file
34
docker-compose.event-registration.yml
Normal file
@ -0,0 +1,34 @@
|
||||
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
|
||||
Reference in New Issue
Block a user