demo-docker/docker-compose.yml

42 lines
913 B
YAML
Raw Normal View History

2025-01-16 14:17:25 +01:00
services:
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=todo_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
backend:
2025-01-16 14:25:12 +01:00
build:
2025-01-16 14:29:01 +01:00
context: git@git.impstyle.com:test/demo-backend.git#main # Replace with your backend repo URL
2025-01-16 14:25:12 +01:00
dockerfile: Dockerfile
2025-01-16 14:17:25 +01:00
ports:
- "8000:8000"
environment:
- DB_NAME=todo_db
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_HOST=db
- DB_PORT=5432
- DEBUG=1
depends_on:
- db
frontend:
2025-01-16 14:25:12 +01:00
build:
2025-01-16 14:29:01 +01:00
context: git@git.impstyle.com:test/demo-frontend.git#main # Replace with your frontend repo URL
2025-01-16 14:25:12 +01:00
dockerfile: Dockerfile
2025-01-16 14:17:25 +01:00
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:8000/api
depends_on:
- backend
volumes:
postgres_data: