0
0
RhSolutions-Api/docker-compose.yml
Serghei Cebotari c13e92da1c
Some checks failed
Test and release / test (push) Failing after 2m52s
Test and release / release-image (push) Successful in 6m20s
Fix environment variable
2024-08-26 13:51:33 +03:00

35 lines
708 B
YAML

version: '3'
services:
app:
build: .
container_name: app
ports:
- 8080:8080
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:
image: postgres:16
container_name: db
environment:
- POSTGRES_USER=chebser
- POSTGRES_PASSWORD=Rehau-987
- POSTGRES_DB=rhsolutions
volumes:
- db-data:/var/lib/postgresql/data
- ./Database:/docker-entrypoint-initdb.d
networks:
- rhsolutions
networks:
rhsolutions:
volumes:
db-data: