diff --git a/backend/.env.template b/backend/.env.template new file mode 100644 index 0000000..a155370 --- /dev/null +++ b/backend/.env.template @@ -0,0 +1,6 @@ +#Postgres SQL Envs +SKILLFORGE_POSTGRES_USER="your-username" +SKILLFORGE_POSTGRES_PASSWORD="your-password" +SKILLFORGE_POSTGRES_DBNAME="your-db-name" +SKILLFORGE_POSTGRES_PORT="your-host-port" +SKILLFORGE_TIMEZONE="Europe/Sofia" diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml new file mode 100644 index 0000000..24645d3 --- /dev/null +++ b/backend/docker-compose.yml @@ -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}:5432" + volumes: + - skillforge-db:/var/lib/postgresql/data + networks: + - skillforge + + +volumes: + skillforge-db: + driver: local + name: skillforge-db + +networks: + skillforge: + driver: bridge + name: skillforge