-
Patrick Tafoya authoredPatrick Tafoya authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker-compose-cosmtrek.yml 948 B
services:
xx_project_name_xx-api:
image: cosmtrek/air:v1.49.0
container_name: xx_project_name_xx-api
working_dir: /app
env_file:
- .env
environment:
- # container internal port (not exposed to host)
- PORT=8080
- air_wd=/app
- <<dbNameKey>>=xx_project_name_xx
- <<dbUserKey>>=databaseUser
- <<dbPassword>>=databasePw1!
- <<dbHost>>=db
- DEBUGGER_ARGS=${DEBUGGER_ARGS}
ports:
# debugger port
- "40000:40000"
volumes:
- ./xx_project_name_xx-api:/app
- ./config/healthcheck.sh:/opt/healthcheck/healthcheck.sh
networks:
- xx_project_name_xx-net
depends_on:
db:
condition: service_healthy
healthcheck:
# due to the way the api authorizes requests, we expect a 401
test: /opt/healthcheck/healthcheck.sh http://localhost:$$PORT/api/docs 401
timeout: 30s
retries: 10
start_period: 30s