Newer
Older
services:
test_db:
image: postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
main_db:
image: postgres
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
project-allocator:
image: project-allocator
environment:
- TEST_DATABASE_URL=postgresql://user:pass@test_db/test-db
- DB_OVERRIDE=postgresql://user:pass@main_db
build:
context: .
dockerfile: dev.Dockerfile
ports:
- 5000:5000
command: flask run -h '0.0.0.0' -p 5000
volumes:
- .:/project-allocator