feat: publish Swarm images to Gitea registry
Some checks failed
CI / Validate frontend and API (push) Successful in 29s
CI / Build and publish Docker images (push) Failing after 5s

This commit is contained in:
Cauê Faleiros
2026-08-31 13:35:53 -03:00
parent 4932f6bf04
commit 7a18251916
4 changed files with 48 additions and 17 deletions

View File

@@ -1,7 +1,6 @@
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-compor_hub}
POSTGRES_USER: ${POSTGRES_USER:-compor}
@@ -13,30 +12,32 @@ services:
interval: 10s
timeout: 5s
retries: 10
deploy:
replicas: 1
restart_policy:
condition: any
api:
build:
context: .
dockerfile: Dockerfile.api
restart: unless-stopped
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}
depends_on:
- postgres
deploy:
replicas: 1
restart_policy:
condition: any
web:
build:
context: .
dockerfile: Dockerfile.web
restart: unless-stopped
image: ${WEB_IMAGE:-gitea.blyzer.com.br/blyzer/compor-academy-web}:${IMAGE_TAG:-latest}
ports:
- "${WEB_PORT:-8080}:80"
depends_on:
- api
deploy:
replicas: 1
restart_policy:
condition: any
volumes:
compor_postgres_data: