feat: update composes

This commit is contained in:
Daniel Luiz Alves
2025-03-14 13:14:51 -03:00
parent 168eae3294
commit 3002c26fac
2 changed files with 23 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
services:
api:
palmr-api:
build: ./apps/server
container_name: palmr-api
depends_on:
@@ -19,9 +19,12 @@ services:
- MINIO_BUCKET_NAME=files
- FRONTEND_URL=http://localhost:4173
- MINIO_PUBLIC_URL=http://localhost:9000
- BASE_URL=http://localhost:3333
ports:
- "3333:3333"
restart: unless-stopped
volumes:
- palmr_uploads:/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3333/health"]
interval: 10s
@@ -29,7 +32,7 @@ services:
retries: 5
start_period: 30s
web:
palmr-app:
build:
context: ./apps/web
args:
@@ -38,7 +41,7 @@ services:
ports:
- "4173:4173"
depends_on:
api:
palmr-api:
condition: "service_healthy"
restart: unless-stopped
healthcheck:
@@ -104,3 +107,4 @@ services:
volumes:
minio_data:
postgres_data:
palmr_uploads:

View File

@@ -1,16 +1,16 @@
services:
api:
image: kyantech/palmr-api:v1-beta
palmr-api:
image: kyantech/palmr-api:v1.1.2-beta
container_name: palmr-api
depends_on:
postgres:
condition: "service_healthy"
minio:
condition: "service_started"
condition: "service_healthy"
environment:
- PORT=3333
- DATABASE_URL=postgresql://palmr:palmr123@localhost:5432/palmr?schema=public
- MINIO_ENDPOINT=localhost
- DATABASE_URL=postgresql://palmr:palmr123@postgres:5432/palmr?schema=public
- MINIO_ENDPOINT=127.0.0.1
- MINIO_PORT=9000
- MINIO_USE_SSL=false
- MINIO_ROOT_USER=palmr
@@ -19,28 +19,26 @@ services:
- MINIO_BUCKET_NAME=files
- FRONTEND_URL=http://localhost:4173
- MINIO_PUBLIC_URL=http://localhost:9000
- BASE_URL=http://localhost:3333
ports:
- "3333:3333"
restart: unless-stopped
volumes:
- palmr_uploads:/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3333/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
network_mode: "host"
extra_hosts:
- "postgres:127.0.0.1"
- "minio:127.0.0.1"
start_period: 30s
# The web(frontend) service only work correctly if you run your api on port 3333
web:
image: kyantech/palmr-app:v1-beta
palmr-app:
image: kyantech/palmr-app:v1.0.1-beta
container_name: palmr-web
ports:
- "4173:4173"
depends_on:
api:
palmr-api:
condition: "service_healthy"
restart: unless-stopped
healthcheck:
@@ -60,15 +58,15 @@ services:
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "9000:9000"
- "9001:9001"
minio-init:
image: minio/mc:latest
@@ -106,3 +104,4 @@ services:
volumes:
minio_data:
postgres_data:
palmr_uploads: