FitTrackee/docker-compose.yml

56 lines
1.2 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: ./fittrackee_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
fittrackee-api:
container_name: fittrackee-api
build: ./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.DevelopmentConfig
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: ./
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:
- 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