Wire project infrastructure
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: recipe-postgres
|
||||
environment:
|
||||
POSTGRES_DB: recipe
|
||||
POSTGRES_USER: recipe
|
||||
POSTGRES_PASSWORD: recipe
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- recipe-pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U recipe -d recipe"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
recipe-pgdata:
|
||||
Reference in New Issue
Block a user