commit 2b0c96286a1cdbf08372da94902477a2e1f5b1e5 Author: Andrii Solianyk Date: Tue Apr 28 12:40:04 2026 +0200 init diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..1b81ec8 --- /dev/null +++ b/docker-compose.yaml @@ -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: \ No newline at end of file