FitTrackee/docker-compose-ci.yml

45 lines
954 B
YAML
Raw Normal View History

2018-01-07 18:58:30 +01:00
version: '3.3'
services:
db:
container_name: 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=mpwo
- POSTGRES_PASSWORD=mpwo
api:
container_name: api
build:
2018-01-10 22:36:31 +01:00
context: https://github.com/SamR1/mpwo.git#master:mpwo_api
dockerfile: Dockerfile-ci
2018-01-07 18:58:30 +01:00
ports:
- 5001:5000
environment:
- FLASK_APP=server.py
- FLASK_DEBUG=1
2018-01-10 22:36:31 +01:00
- APP_SETTINGS=mpwo_api.config.TestingConfig
- DATABASE_URL=postgres://mpwo:mpwo@db:5432/mpwo_test
2018-01-07 18:58:30 +01:00
depends_on:
- db
links:
- 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
dockerfile: ./mpwo_client/Dockerfile-ci
2018-01-07 22:10:25 +01:00
args:
- NODE_ENV=development
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
ports:
- 3007:3000
depends_on:
- api
links:
- api