* feat: create migration to update task table schema issue #52 issue #57 * chore: fix docker compose and client package-lock file * fix: wrong placeholder for email at the login page issue #134 * fix: wrong placeholder for email at the register page issue #134 * feat: update all forms to start as valid * feat: create user area where he can manage data and language issue #135 issue #130 issue #104 * chore: simplify back-end services * feat: delete user data from server issue #104 * test: add simple test case for login and register and fix footer
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
---
|
|
|
|
services:
|
|
client:
|
|
container_name: client
|
|
image: node:20.18-bookworm
|
|
ports:
|
|
- "5000:5000"
|
|
entrypoint: sh -c "npm i --no-update-notifier && npm start"
|
|
user: root
|
|
volumes:
|
|
- "./client:/app"
|
|
working_dir: /app
|
|
healthcheck:
|
|
test: timeout 10s bash -c 'true > /dev/tcp/127.0.0.1/5000'
|
|
interval: 1m30s
|
|
timeout: 15s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
server:
|
|
container_name: server
|
|
depends_on:
|
|
db:
|
|
condition: service_started
|
|
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"
|
|
- "5005:5005"
|
|
image: maven:3.9.9-eclipse-temurin-17
|
|
entrypoint: './mvnw -ntp spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" -Dmaven.plugin.validation=VERBOSE'
|
|
working_dir: /app
|
|
volumes:
|
|
- "./server:/app"
|
|
healthcheck:
|
|
test: curl -f http://localhost:8585/actuator/health | grep '"status":"UP"'
|
|
interval: 1m30s
|
|
timeout: 15s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
db:
|
|
container_name: db
|
|
image: postgres:15.8-bookworm
|
|
environment:
|
|
POSTGRES_DB: tasknote
|
|
POSTGRES_USER: tasknoteuser
|
|
POSTGRES_PASSWORD: default
|
|
PGDATA: /tmp
|
|
volumes:
|
|
- "./data:/tmp"
|
|
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
|