Files
tasknote/docker-compose.prod.yml
T
rmcamposandGitHub e5f3e339f6 feat: add gravatar support (#347)
* feat: add gravatar support

issue #323

chore: fix sidbar issues

* test: fix test case

* chore: fix sonar issues

* chore: fix sonar cloud issues

* test: fix test cases

* test: add more test cases

* ci: fix caddyfile and docker compose
2025-03-11 21:01:00 -03:00

48 lines
1.1 KiB
YAML

---
services:
client:
container_name: client
depends_on:
server:
condition: service_healthy
environment:
VITE_BACKEND_SERVER: http://localhost:8585
VITE_BUILD: snapshot
image: ghcr.io/ricardo-campos-org/react-typescript-todolist/client:candidate
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: ghcr.io/ricardo-campos-org/react-typescript-todolist/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