2018-01-07 18:58:30 +01:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2018-06-07 14:45:43 +02:00
|
|
|
fittrackee-db:
|
|
|
|
container_name: fittrackee-db
|
2018-06-07 15:40:22 +02:00
|
|
|
build: https://github.com/SamR1/mpwo.git#master:fittrackee_api/db
|
2018-01-07 18:58:30 +01:00
|
|
|
ports:
|
|
|
|
- 5435:5432
|
|
|
|
environment:
|
2018-01-13 11:05:23 +01:00
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
2018-01-07 18:58:30 +01:00
|
|
|
|
2018-06-07 14:45:43 +02:00
|
|
|
fittrackee-api:
|
|
|
|
container_name: fittrackee-api
|
2018-06-07 15:40:22 +02:00
|
|
|
build: https://github.com/SamR1/mpwo.git#master:fittrackee_api
|
2018-01-07 18:58:30 +01:00
|
|
|
ports:
|
|
|
|
- 5001:5000
|
|
|
|
environment:
|
2018-06-07 14:45:43 +02:00
|
|
|
- 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
|
2018-06-07 14:15:27 +02:00
|
|
|
- APP_SETTINGS=fittrackee_api.config.TestingConfig
|
2018-01-07 18:58:30 +01:00
|
|
|
depends_on:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-db
|
2018-01-07 18:58:30 +01:00
|
|
|
links:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-db
|
2018-01-07 22:10:25 +01:00
|
|
|
|
2018-06-07 14:45:43 +02:00
|
|
|
fittrackee-client:
|
|
|
|
container_name: fittrackee-client
|
2018-01-07 22:10:25 +01:00
|
|
|
build:
|
2018-06-07 15:40:22 +02:00
|
|
|
context: https://github.com/SamR1/mpwo.git
|
2018-06-07 14:45:43 +02:00
|
|
|
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}
|
2018-01-07 22:10:25 +01:00
|
|
|
ports:
|
|
|
|
- 3007:3000
|
|
|
|
depends_on:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-api
|
2018-01-07 22:10:25 +01:00
|
|
|
links:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-api
|
2018-01-14 14:41:03 +01:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
container_name: nginx
|
|
|
|
build: ./nginx
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
depends_on:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-api
|
|
|
|
- fittrackee-client
|
2018-01-14 14:41:03 +01:00
|
|
|
links:
|
2018-06-07 14:45:43 +02:00
|
|
|
- fittrackee-api
|