34 lines
660 B
YAML
34 lines
660 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
app:
|
||
|
build: .
|
||
|
container_name: app
|
||
|
ports:
|
||
|
- 5000:5000
|
||
|
environment:
|
||
|
- DB_HOST=db
|
||
|
- DB_PORT=5432
|
||
|
- DB_DATABASE=rhsolutions
|
||
|
- DB_USER=chebser
|
||
|
- DB_PASSWORD=Rehau-987
|
||
|
networks:
|
||
|
- rhsolutions
|
||
|
volumes:
|
||
|
- ./RhSolutions.Api/MLModels:/app/MLModels
|
||
|
depends_on:
|
||
|
- db
|
||
|
db:
|
||
|
build: Database/.
|
||
|
container_name: db
|
||
|
environment:
|
||
|
- POSTGRES_USER=chebser
|
||
|
- POSTGRES_PASSWORD=Rehau-987
|
||
|
- POSTGRES_DB=rhsolutions
|
||
|
volumes:
|
||
|
- db-data:/var/lib/postgresql/data
|
||
|
networks:
|
||
|
- rhsolutions
|
||
|
networks:
|
||
|
rhsolutions:
|
||
|
volumes:
|
||
|
db-data:
|