15 lines
344 B
YAML
15 lines
344 B
YAML
services:
|
|
db:
|
|
container_name: recipe_postgres
|
|
image: docker.io/library/postgres:17
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=${DB_NAME}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data
|