53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
client:
|
|
build:
|
|
context: ./services/client
|
|
dockerfile: Dockerfile-prod
|
|
volumes:
|
|
- './services/client:/usr/src/app'
|
|
- '/usr/src/app/node_mdules'
|
|
ports:
|
|
- 3007:3000
|
|
environment:
|
|
- NODE_ENV=development
|
|
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
|
|
depends_on:
|
|
- users
|
|
users:
|
|
build:
|
|
context: ./services/users
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- './services/users:/usr/src/app'
|
|
ports:
|
|
- "5001:5000"
|
|
environment:
|
|
- FLASK_ENV=development
|
|
- APP_SETTINGS=project.config.DevelopmentConfig
|
|
- DATABASE_URL=postgres://postgres:postgres@users-db:5432/users_dev
|
|
- DATABASE_TEST_URL=postgres://postgres:postgres@users-db:5432/users_test
|
|
depends_on:
|
|
- users-db
|
|
users-db:
|
|
build:
|
|
context: ./services/users/project/db
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5435:5432"
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
nginx:
|
|
build:
|
|
context: ./services/nginx
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- users
|
|
- client
|
|
|