FitTrackee/docker-compose.yml

56 lines
1.1 KiB
YAML
Raw Normal View History

2018-01-07 18:58:30 +01:00
version: '3.3'
services:
2018-01-14 14:41:03 +01:00
mpwo-db:
container_name: mpwo-db
2018-01-14 12:48:52 +01:00
build: ./mpwo_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
2018-01-14 14:41:03 +01:00
mpwo-api:
container_name: mpwo-api
2018-01-14 12:48:52 +01:00
build: ./mpwo_api
2018-01-07 18:58:30 +01:00
ports:
- 5001:5000
environment:
2018-01-14 17:19:02 +01:00
- DATABASE_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo
- DATABASE_TEST_URL=postgres://postgres:postgres@mpwo-db:5432/mpwo_test
2018-01-07 18:58:30 +01:00
- FLASK_APP=server.py
- FLASK_DEBUG=1
- APP_SETTINGS=mpwo_api.config.DevelopmentConfig
depends_on:
2018-01-14 14:41:03 +01:00
- mpwo-db
2018-01-07 18:58:30 +01:00
links:
2018-01-14 14:41:03 +01:00
- mpwo-db
2018-01-07 22:10:25 +01:00
2018-01-14 14:41:03 +01:00
mpwo-client:
container_name: mpwo-client
2018-01-07 22:10:25 +01:00
build:
context: ./
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:
2018-01-14 14:41:03 +01:00
- mpwo-api
2018-01-07 22:10:25 +01:00
links:
2018-01-14 14:41:03 +01:00
- mpwo-api
nginx:
container_name: nginx
build: ./nginx
restart: always
ports:
- 80:80
depends_on:
- mpwo-api
- mpwo-client
links:
- mpwo-api