Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Provide a username
SKILLFORGE_POSTGRES_USER=skillforge_admin

#Provide a password
SKILLFORGE_POSTGRES_PASSWORD=0020

#Provide a database name
SKILLFORGE_POSTGRES_DBNAME=skillforge_db

#Provide a port
SKILLFORGE_POSTGRES_PORT=5432:5432

SKILLFORGE_TIMEZONE=Europe/Sofia
13 changes: 13 additions & 0 deletions backend/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Provide a username
SKILLFORGE_POSTGRES_USER=skillforge_admin

#Provide a password
SKILLFORGE_POSTGRES_PASSWORD=0020

#Provide a database name
SKILLFORGE_POSTGRES_DBNAME=skillforge_db

#Provide a port
SKILLFORGE_POSTGRES_PORT=5432:5432

SKILLFORGE_TIMEZONE=Europe/Sofia
27 changes: 27 additions & 0 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
skillforge-db:
image: postgres:17
container_name: skillforge-db
hostname: skillforge-db
environment:
POSTGRES_USER: ${SKILLFORGE_POSTGRES_USER}
POSTGRES_PASSWORD: ${SKILLFORGE_POSTGRES_PASSWORD}
POSTGRES_DB: ${SKILLFORGE_POSTGRES_DBNAME}
TZ: ${SKILLFORGE_TIMEZONE}
ports:
- "${SKILLFORGE_POSTGRES_PORT}"
volumes:
- skillforge-db:/var/lib/postgresql/data
networks:
- skillforge


volumes:
skillforge-db:
driver: local
name: skillforge-db

networks:
skillforge:
driver: bridge
name: skillforge