services: postgres: image: postgres:16-alpine environment: POSTGRES_DB: ${POSTGRES_DB:-compor_hub} POSTGRES_USER: ${POSTGRES_USER:-compor} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in Portainer} volumes: - compor_postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 10 deploy: replicas: 1 restart_policy: condition: any api: image: ${API_IMAGE:-gitea.blyzer.com.br/blyzer/compor-academy-api}:${IMAGE_TAG:-latest} environment: APP_ENV: production API_PORT: 3001 FRONTEND_ORIGIN: ${FRONTEND_ORIGIN:?Set the public https URL in Portainer} DATABASE_URL: postgresql://${POSTGRES_USER:-compor}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-compor_hub} JWT_SECRET: ${JWT_SECRET:?Set a long random JWT_SECRET in Portainer} deploy: replicas: 1 restart_policy: condition: any web: image: ${WEB_IMAGE:-gitea.blyzer.com.br/blyzer/compor-academy-web}:${IMAGE_TAG:-latest} ports: - "${WEB_PORT:-8080}:80" deploy: replicas: 1 restart_policy: condition: any volumes: compor_postgres_data: