From c632fc13e629a6c2e81e43e7cd945d8c3cc26b3f Mon Sep 17 00:00:00 2001 From: Felipe Canin Novaes Date: Fri, 20 Mar 2026 09:05:08 -0300 Subject: [PATCH] add --- docker-compose-prod.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker-compose-prod.yml diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml new file mode 100644 index 0000000..300d30c --- /dev/null +++ b/docker-compose-prod.yml @@ -0,0 +1,18 @@ +services: + backend: + build: + context: ./backend + dockerfile: Dockerfile + restart: unless-stopped + env_file: .env + environment: + DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} + ports: + - "${PORT:-8080}:${PORT:-8080}" + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:${PORT:-8080}/health || exit 1"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 10s +