add database container to docker-compose.yaml

This commit is contained in:
ІО-23 Шмуляр Олег 2024-12-27 21:49:24 +02:00
parent 2fcb8aa276
commit a5c5c1850d
1 changed files with 10 additions and 0 deletions

View File

@ -12,3 +12,13 @@ services:
- "12402:12402" - "12402:12402"
volumes: volumes:
- ./app:/app/app - ./app:/app/app
env_file:
- db.env
depends_on:
- db
db:
restart: unless-stopped
image: postgres:17.2-alpine3.21
env_file:
- db.env