docker-compose.yml 1012 Bytes
services:
  dealaccountdata-init:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        APP_SCRIPT: dealdata/dealaccountdata.py
    image: dealaccountdata-init:latest
    container_name: dealaccountdata-init
    command: ["python", "dealdata/dealaccountdata.py", "--env", "prod", "--config", "/app/config.yaml"]
    volumes:
      - ${CONFIG_FILE_PATH:-./config/config.yaml}:/app/config.yaml:ro
    restart: "no"

  dealaccountdata-login-refresh:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        APP_SCRIPT: dealdata/dealaccountlastlogintime.py
    image: dealaccountdata-login-refresh:latest
    container_name: dealaccountdata-login-refresh
    command: ["python", "dealdata/dealaccountlastlogintime.py", "--env", "prod", "--config", "/app/config.yaml"]
    volumes:
      - ${CONFIG_FILE_PATH:-./config/config.yaml}:/app/config.yaml:ro
    restart: unless-stopped
    depends_on:
      dealaccountdata-init:
        condition: service_completed_successfully