FitTrackee/docker-compose-ci.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2018-01-07 18:58:30 +01:00
version: '3.3'
services:
fittrackee-db:
container_name: fittrackee-db
build: https://github.com/SamR1/FitTrackee.git#${BRANCH}:fittrackee_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
fittrackee-api:
container_name: fittrackee-api
build: https://github.com/SamR1/FitTrackee.git#${BRANCH}:fittrackee_api
2018-01-07 18:58:30 +01:00
ports:
- 5001:5000
environment:
- DATABASE_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee
- DATABASE_TEST_URL=postgres://postgres:postgres@fittrackee-db:5432/fittrackee_test
2018-01-07 18:58:30 +01:00
- FLASK_APP=server.py
- FLASK_DEBUG=1
- APP_SETTINGS=fittrackee_api.config.TestingConfig
2018-01-07 18:58:30 +01:00
depends_on:
- fittrackee-db
2018-01-07 18:58:30 +01:00
links:
- fittrackee-db
2018-01-07 22:10:25 +01:00
fittrackee-client:
container_name: fittrackee-client
2018-01-07 22:10:25 +01:00
build:
context: https://github.com/SamR1/FitTrackee.git#${BRANCH}
dockerfile: ./fittrackee_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}
- CI=true
2018-01-07 22:10:25 +01:00
ports:
- 3007:3000
depends_on:
- fittrackee-api
2018-01-07 22:10:25 +01:00
links:
- fittrackee-api
2018-01-14 14:41:03 +01:00
nginx:
container_name: nginx
build: ./nginx
restart: always
ports:
- 80:80
depends_on:
- fittrackee-api
- fittrackee-client
2018-01-14 14:41:03 +01:00
links:
- fittrackee-api