This commit is contained in:
Arkaprabha Chakraborty
2025-12-14 05:33:05 +05:30
parent 25ead1d8bd
commit 43c516a005
37 changed files with 1037 additions and 523 deletions

View File

@@ -2,34 +2,19 @@ services:
backend:
build: ./backend
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: user
DB_NAME: urlshortener
DB_PASSWORD: password
DB_PATH: /data/reduce.db
ports:
- "8080:8080"
depends_on:
- postgres
networks:
- docker
postgres:
image: postgres:latest
build: ./database
environment:
POSTGRES_DB: urlshortener
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- ./data:/data
networks:
- docker
frontend:
build: ./frontend
environment:
NEXT_PUBLIC_BACKEND_URL: http://backend:8080
PUBLIC_BACKEND_URL: http://localhost:8080
INTERNAL_BACKEND_URL: http://backend:8080
ports:
- "3000:3000"
depends_on: