add coursework
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: kursach
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
container_name: kursach_postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: kursach
|
||||
POSTGRES_USER: kursach
|
||||
POSTGRES_PASSWORD: kursach
|
||||
ports:
|
||||
- "5433:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./sql:/docker-entrypoint-initdb.d:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U kursach -d kursach"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user