FitTrackee/docker-compose-dev.yml

44 lines
887 B
YAML
Raw Normal View History

2018-01-07 18:58:30 +01:00
version: '3.3'
services:
2018-01-14 12:48:52 +01:00
api-db:
container_name: api-db
build: ./mpwo_api/db
2018-01-07 18:58:30 +01:00
ports:
- 5435:5432
environment:
2018-01-14 12:48:52 +01:00
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
2018-01-07 18:58:30 +01:00
api:
container_name: api
2018-01-14 12:48:52 +01:00
build: ./mpwo_api
2018-01-07 18:58:30 +01:00
ports:
- 5001:5000
environment:
2018-01-14 12:48:52 +01:00
- DATABASE_URL=postgres://postgres:postgres@api-db:5432/mpwo
- DATABASE_TEST_URL=postgres://postgres:postgres@api-db:5432/mpwo_test
2018-01-07 18:58:30 +01:00
- FLASK_APP=server.py
- FLASK_DEBUG=1
- APP_SETTINGS=mpwo_api.config.DevelopmentConfig
depends_on:
2018-01-14 12:48:52 +01:00
- api-db
2018-01-07 18:58:30 +01:00
links:
2018-01-14 12:48:52 +01:00
- api-db
2018-01-07 22:10:25 +01:00
client:
container_name: client
build:
context: ./
2018-01-14 12:48:52 +01:00
dockerfile: ./mpwo_client/Dockerfile
2018-01-07 22:10:25 +01:00
args:
- NODE_ENV=development
2018-01-14 12:48:52 +01:00
- REACT_APP_API_URL=${REACT_APP_API_URL}
2018-01-07 22:10:25 +01:00
ports:
- 3007:3000
depends_on:
- api
links:
- api