| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- version: "3.9"
- services:
- db:
- image: postgres:15
- restart: unless-stopped
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_DB: schedule_management
- volumes:
- - db_data:/var/lib/postgresql/data
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U postgres -d schedule_management"]
- interval: 5s
- timeout: 5s
- retries: 10
- backend:
- image: schedule-management-backend:1.0.0
- build:
- context: ./backend
- dockerfile: Dockerfile
- restart: unless-stopped
- env_file:
- - deploy.env
- depends_on:
- db:
- condition: service_healthy
- frontend:
- image: schedule-management-frontend:1.0.0
- build:
- context: .
- dockerfile: docker/frontend.Dockerfile
- restart: unless-stopped
- ports:
- - "8080:80"
- depends_on:
- - backend
- volumes:
- db_data:
|