* feat: add languages - wip issue #90 based on article https://dev.to/franklin030601/building-a-multi-language-app-with-react-js-2och * feat: translate landing, login and register pages issue #90 * feat: translate all the external texts and messages issue #90 * feat: add new automations scripts and remove old ones * feat: add server build info on actuator health page * feat: language handling for all external pages issue #90 * feat: start translation at the home page - wip issue #90 * feat: improve automation to run services on docker * feat: more automations for the client this time * feat: translate finished for the home page issue #90 * feat: translate about page, header and footer issue #90 * feat: translate task page issue #90 * feat: translate notes issue #90 * feat: increase token expiration to one week * test: fix test cases * ci: remove client docker image from workflow * feat: improve reliability * chore: reduce duplications * feat: fix lint issues thansk to https://dev.to/aolyang/eslint-9-flat-config-tutorial-2bm5 * fix: path when login or register
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
---
|
|
|
|
services:
|
|
client:
|
|
container_name: client
|
|
image: node:20.17-bullseye-slim
|
|
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: 5435
|
|
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
|
|
POSTGRES_PORT: 5435
|
|
PGDATA: /tmp
|
|
volumes:
|
|
- "./data:/tmp"
|
|
ports:
|
|
- "5435:5432"
|
|
healthcheck:
|
|
test: psql -q -U $${POSTGRES_USER} -d $${POSTGRES_DB} -c 'SELECT 1'
|
|
interval: 1m30s
|
|
timeout: 15s
|
|
retries: 3
|
|
start_period: 10s
|