* fix: task progress data from back-end * chore: make backend candidate image default * feat: load data for the dashboard home from the back-end issue #320 * test: add tets for completedTasks and TaskProgress components * test: fix test case in the backend * feat: fix unauthorized requests test: add home controller test cases * test: add home service test cases
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
---
|
|
|
|
services:
|
|
client:
|
|
container_name: client
|
|
depends_on:
|
|
server:
|
|
condition: service_healthy
|
|
environment:
|
|
VITE_BACKEND_SERVER: http://localhost:8585
|
|
VITE_BUILD: snapshot
|
|
image: client:latest
|
|
ports:
|
|
- "5000:5000"
|
|
|
|
server:
|
|
container_name: server
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
environment:
|
|
POSTGRES_DB: tasknote
|
|
POSTGRES_HOST: db
|
|
POSTGRES_USER: tasknoteuser
|
|
POSTGRES_PASSWORD: default
|
|
POSTGRES_PORT: 5432
|
|
CORS_ALLOWED_ORIGINS: http://localhost:5000
|
|
SERVER_SERVLET_CONTEXT_PATH: /
|
|
ports:
|
|
- "8585:8585"
|
|
image: server:candidate
|
|
|
|
db:
|
|
container_name: db
|
|
image: postgres:15.8-bookworm
|
|
environment:
|
|
POSTGRES_DB: tasknote
|
|
POSTGRES_USER: tasknoteuser
|
|
POSTGRES_PASSWORD: default
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: psql -q -U $${POSTGRES_USER} -d $${POSTGRES_DB} -c 'SELECT 1'
|
|
interval: 1m30s
|
|
timeout: 15s
|
|
retries: 3
|
|
start_period: 10s
|