41 lines
887 B
YAML
41 lines
887 B
YAML
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
environment:
|
|
POSTGRES_DB: pagemanager
|
|
POSTGRES_USER: pm
|
|
POSTGRES_PASSWORD: pm
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
pagemanager.api:
|
|
image: pagemanager.api
|
|
build:
|
|
context: ./PageManager.Api
|
|
dockerfile: PageManager.Api/Dockerfile
|
|
ports:
|
|
- "5278:8080"
|
|
environment:
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
- ConnectionStrings__Postgres=Host=postgres;Database=pagemanager;Username=pm;Password=pm
|
|
volumes:
|
|
- books:/data/books
|
|
depends_on:
|
|
- postgres
|
|
|
|
pagemanager.web:
|
|
image: pagemanager.web
|
|
build:
|
|
context: ./PageManager.Web
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- pagemanager.api
|
|
|
|
volumes:
|
|
pgdata:
|
|
books:
|