2025-03-02 14:35:24 -03:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
client:
|
|
|
|
|
container_name: client
|
|
|
|
|
depends_on:
|
|
|
|
|
server:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
environment:
|
|
|
|
|
VITE_BACKEND_SERVER: http://localhost:8585
|
|
|
|
|
VITE_BUILD: snapshot
|
2025-03-11 17:01:00 -07:00
|
|
|
image: ghcr.io/ricardo-campos-org/react-typescript-todolist/client:candidate
|
2025-03-02 14:35:24 -03:00
|
|
|
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: /
|
2025-03-24 19:57:29 -03:00
|
|
|
SECURITY_KEY: ${SECURITY_KEY}
|
2025-04-27 16:22:11 -03:00
|
|
|
TARGET_ENV: production
|
2025-03-02 14:35:24 -03:00
|
|
|
ports:
|
|
|
|
|
- "8585:8585"
|
2025-03-24 19:57:29 -03:00
|
|
|
image: server:candidate
|
2025-03-02 14:35:24 -03:00
|
|
|
|
|
|
|
|
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
|