Update docker-compose.yaml

This commit is contained in:
Andras Bacsai
2024-03-19 10:36:24 +01:00
committed by GitHub
parent 66d8fb7b9f
commit 7596c3803b

View File

@@ -8,10 +8,14 @@ services:
environment:
- PORT=3000
- DB_CONNECTION=postgres
# database:
# image: postgres:14-alpine
# volumes:
# - db-data:/var/lib/postgresql/data
# environment:
# - POSTGRES_DB=database
# - POSTGRES_PASSWORD=password
database:
image: postgres:14-alpine
volumes:
- db-data:/var/lib/postgresql/data
- type: bind
source: ./app
target: /app
read_only: true
environment:
- POSTGRES_DB=database
- POSTGRES_PASSWORD=password