services: api: image: highload-auth-retest-658e0bd7-api:latest ports: !override - "127.0.0.1:61029:8080" environment: APP_HOST: 0.0.0.0 APP_PORT: "8080" SESSION_TTL_SECONDS: "3600" DATABASE_URL_FILE: /run/secrets/database_url postgres: ports: !override - "127.0.0.1:61030:5432" api_expiry: extends: service: api image: highload-auth-retest-658e0bd7-api:latest profiles: [expiry] secrets: - database_url depends_on: postgres: condition: service_healthy migrate: condition: service_completed_successfully restart: unless-stopped read_only: true cap_drop: [ALL] security_opt: [no-new-privileges:true] stop_grace_period: 20s ports: !override - "127.0.0.1:61031:8080" environment: SESSION_TTL_SECONDS: "2" secrets: database_url: file: /tmp/highload-auth-retest-658e0bd7/database_url postgres_password: file: /tmp/highload-auth-retest-658e0bd7/postgres_password