Update docker-compose.yaml
This commit is contained in:
+17
-2
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres:17
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: listhub
|
POSTGRES_DB: listhub
|
||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
listhub_backend:
|
listhub_backend:
|
||||||
build: '../backend'
|
build: ./backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@@ -25,6 +25,20 @@ services:
|
|||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- listhub_data:/app
|
- listhub_data:/app
|
||||||
|
|
||||||
|
listhub_frontend:
|
||||||
|
build:
|
||||||
|
context: ./frontend
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
VITE_API_URL: http://localhost:8080/api/v1
|
||||||
|
depends_on:
|
||||||
|
- listhub_backend
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- listhub_frontend_data:/app
|
||||||
|
|
||||||
loki:
|
loki:
|
||||||
image: grafana/loki:2.9.2
|
image: grafana/loki:2.9.2
|
||||||
container_name: loki
|
container_name: loki
|
||||||
@@ -47,3 +61,4 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
listhub_data:
|
listhub_data:
|
||||||
|
listhub_frontend_data:
|
||||||
Reference in New Issue
Block a user