16 lines
350 B
YAML
16 lines
350 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:
|
||
|
- "${DB_PORT}:5432"
|
||
|
volumes:
|
||
|
- ./db:/var/lib/postgresql/data
|