Skip to content

Commit

Permalink
adding docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Nov 5, 2024
1 parent facbc5c commit 8660e8b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions databaseSchema/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3.8'

services:
db:
build:
context: .
dockerfile: Dockerfile
environment:
POSTGRES_DB: ${POSTGRESQL_DB}
POSTGRES_USER: ${POSTGRESQL_DB_USER}
POSTGRES_PASSWORD: ${POSTGRESQL_DB_PASSWORD}
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql

volumes:
db-data:

0 comments on commit 8660e8b

Please sign in to comment.