init
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: listhub
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
listhub_backend:
|
||||
build: ./backend
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
DB_URL: jdbc:postgresql://db:5432/listhub
|
||||
DB_USER: postgres
|
||||
DB_PASS: postgres
|
||||
JWT_SECRET: awdpokawodjawoidjawidjoij120391829d3j8a0jd8s9dawd
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- listhub_backend_data:/app
|
||||
|
||||
listhub_frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
args:
|
||||
VITE_API_URL: http://localhost:8080/api/v1
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- listhub_backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- listhub_frontend_data:/app
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
listhub_backend_data:
|
||||
listhub_frontend_data:
|
||||
Reference in New Issue
Block a user