docker file for postgresql

This commit is contained in:
tom moron
2024-08-11 20:35:58 +02:00
parent eb0539b31e
commit 8ad8d06cae
9 changed files with 66 additions and 4 deletions

View File

@ -23,6 +23,23 @@ services:
ports:
- "9000:9000"
postgresql:
container_name: postgresql
env_file: .env
build:
context: requirements/postgresql
args:
DB_NAME: ${DB_NAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
# volumes:
# - website_data:/var/www/djangoserver
networks:
- transcendence
restart: always
ports:
- "5432:5432"
volumes:
website_data:
driver: local