mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: initialize project with environment template, gitignore, and docker-compose configuration
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
# DATABASE
|
||||||
|
DB_NAME=piku
|
||||||
|
DB_USER=user
|
||||||
|
DB_PASSWORD=password123
|
||||||
|
DB_HOST=localhost
|
||||||
|
DB_PORT=5432
|
||||||
|
|
||||||
|
# DJANGO
|
||||||
|
DEBUG=True
|
||||||
|
SECRET_KEY=django-secret-key
|
||||||
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||||
|
|
||||||
|
# EMAIL
|
||||||
|
EMAIL_HOST=localhost
|
||||||
|
EMAIL_PORT=1025
|
||||||
|
|
||||||
|
# FRONTEND
|
||||||
|
VITE_API_URL=http://localhost:8000
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# Environment variables
|
||||||
|
.env
|
||||||
|
|
||||||
|
# Frontend
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
.vite/
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
.vscode/
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
services:
|
||||||
|
db:
|
||||||
|
# postgres database
|
||||||
|
image: postgres:16-alpine
|
||||||
|
container_name: piku_db
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: ${DB_NAME}
|
||||||
|
POSTGRES_USER: ${DB_USER}
|
||||||
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- "${DB_PORT}:5432"
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
mailpit:
|
||||||
|
# email testing
|
||||||
|
image: axllent/mailpit
|
||||||
|
container_name: piku_mail
|
||||||
|
ports:
|
||||||
|
- "8025:8025" # Web UI
|
||||||
|
- "${EMAIL_PORT}:1025" # SMTP
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
Reference in New Issue
Block a user