35 lines
728 B
YAML
35 lines
728 B
YAML
services:
|
|
api:
|
|
image: api
|
|
build:
|
|
context: .
|
|
dockerfile: back/Controllers/Dockerfile
|
|
ports:
|
|
- 5125:5125
|
|
environment:
|
|
- ConnectionStrings__DefaultConnection=${CONNECTION_STRING}
|
|
depends_on:
|
|
- database
|
|
dombudg:
|
|
image: dombudg
|
|
build:
|
|
context: front
|
|
dockerfile: ./Dockerfile
|
|
environment:
|
|
- VITE_API_URL=http://api:5125
|
|
ports:
|
|
- 80:80
|
|
depends_on:
|
|
- api
|
|
database:
|
|
image: postgres:14
|
|
environment:
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres_data:
|
|
driver: local |