Initial Commit
This commit is contained in:
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
db:
|
||||
image: postgres:15.3
|
||||
environment:
|
||||
POSTGRES_DB: "virt_dashboard"
|
||||
POSTGRES_USER: "virt_dashboard_user"
|
||||
POSTGRES_PASSWORD: "EKnqZLVDZqjN"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U virt_dashboard_user -d virt_dashboard"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
restart: unless-stopped
|
||||
backend:
|
||||
build: ./api/
|
||||
environment:
|
||||
POSTGRES_SERVER: "db"
|
||||
POSTGRES_USER: "virt_dashboard_user"
|
||||
POSTGRES_PASSWORD: "EKnqZLVDZqjN"
|
||||
POSTGRES_DB: "virt_dashboard"
|
||||
ports:
|
||||
- "5000:5000"
|
||||
frontend:
|
||||
build: ./frontend/
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user