mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 12:49:41 +03:00
Added docker compose with postgres db
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: neuro_db
|
||||
image: postgres:alpine
|
||||
environment:
|
||||
- POSTGRES_USER=${DATABASE_USER}
|
||||
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
|
||||
- POSTGRES_DB=${DATABASE_NAME}
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
ports:
|
||||
- "${DATABASE_PORT}:5432"
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
volumes:
|
||||
- neuro_postgres_db:/var/lib/postgresql/data
|
||||
volumes:
|
||||
neuro_postgres_db:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user