56 lines
1.3 KiB
YAML
Raw Normal View History

2020-09-22 14:33:50 -04:00
version: "3.3"
services:
db:
container_name: db
image: sartography/cr-connect-db:$E2E_TAG
ports:
- "5432:5432"
environment:
2020-09-23 17:21:58 -04:00
- POSTGRES_USER=covid_user
- POSTGRES_PASSWORD=covid_pass
- POSTGRES_MULTIPLE_DATABASES=covid_test
2020-09-22 14:33:50 -04:00
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 10
backend:
container_name: backend
depends_on:
- db
2020-09-23 17:21:58 -04:00
image: sartography/uva-covid19-testing-communicator:$E2E_TAG
2020-09-22 14:33:50 -04:00
environment:
- APPLICATION_ROOT=/
2020-09-23 17:21:58 -04:00
- CORS_ALLOW_ORIGINS=localhost:4200,frontend:4200
2020-09-22 14:33:50 -04:00
- DB_HOST=db
2020-09-23 17:21:58 -04:00
- DB_NAME=covid_test
- DB_PASSWORD=covid_pass
2020-09-22 14:33:50 -04:00
- DB_PORT=5432
2020-09-23 17:21:58 -04:00
- DB_USER=covid_user
2020-09-22 14:33:50 -04:00
- DEVELOPMENT=true
- PORT0=5000
- PRODUCTION=false
- TESTING=false
- UPGRADE_DB=true
ports:
- "5000:5000"
2020-09-23 17:21:58 -04:00
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
2020-09-22 14:33:50 -04:00
# frontend:
# container_name: frontend
# depends_on:
# - db
# - backend
2020-09-23 17:21:58 -04:00
# image: sartography/uva-covid19-testing-kiosk:dev
2020-09-22 14:33:50 -04:00
# environment:
# - API_URL=http://localhost:5000/api/v1.0
# - BASE_HREF=/app/
# - DEPLOY_URL=/app/
# - HOME_ROUTE=home
# - PORT0=4200
# - PRODUCTION=false
# ports:
# - "4200:4200"