FitTrackee/docker-compose-ci.yml

44 lines
992 B
YAML
Raw Normal View History

2018-01-07 18:58:30 +01:00
version: '3.3'
services:
api-db:
container_name: api-db
2018-01-10 22:36:31 +01:00
build: https://github.com/SamR1/mpwo.git#master:mpwo_api/db
2018-01-07 18:58:30 +01:00
ports:
- 5435:5432
environment:
- 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: https://github.com/SamR1/mpwo.git#master:mpwo_api
2018-01-07 18:58:30 +01:00
ports:
- 5001:5000
environment:
- 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
2018-01-10 22:36:31 +01:00
- APP_SETTINGS=mpwo_api.config.TestingConfig
2018-01-07 18:58:30 +01:00
depends_on:
- api-db
2018-01-07 18:58:30 +01:00
links:
- api-db
2018-01-07 22:10:25 +01:00
client:
container_name: client
build:
2018-01-10 22:36:31 +01:00
context: https://github.com/SamR1/mpwo.git
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