Fix Coolify routing/network availability
This commit is contained in:
@@ -30,7 +30,7 @@ GITHUB_ID=your-github-oauth-client-id
|
|||||||
GITHUB_SECRET=your-github-oauth-client-secret
|
GITHUB_SECRET=your-github-oauth-client-secret
|
||||||
GOOGLE_ID=your-google-oauth-client-id
|
GOOGLE_ID=your-google-oauth-client-id
|
||||||
GOOGLE_SECRET=your-google-oauth-client-secret
|
GOOGLE_SECRET=your-google-oauth-client-secret
|
||||||
NEXT_PUBLIC_API_URL=https://your-fiscal-domain.com
|
NEXT_PUBLIC_API_URL=https://api.your-fiscal-domain.com
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Deploy
|
5. Deploy
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ services:
|
|||||||
POSTGRES_DB: ${POSTGRES_DB:-fiscal}
|
POSTGRES_DB: ${POSTGRES_DB:-fiscal}
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
expose:
|
||||||
|
- "5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-fiscal}"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-fiscal}"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
networks:
|
|
||||||
- fiscal
|
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
@@ -32,6 +32,8 @@ services:
|
|||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-local-dev-better-auth-secret-change-me}
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-local-dev-better-auth-secret-change-me}
|
||||||
BETTER_AUTH_BASE_URL: ${BETTER_AUTH_BASE_URL:-http://localhost:3001}
|
BETTER_AUTH_BASE_URL: ${BETTER_AUTH_BASE_URL:-http://localhost:3001}
|
||||||
|
expose:
|
||||||
|
- "3001"
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -40,8 +42,6 @@ services:
|
|||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
networks:
|
|
||||||
- fiscal
|
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
@@ -51,16 +51,13 @@ services:
|
|||||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://backend:3001}
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://backend:3001}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
PORT: 3000
|
||||||
|
HOSTNAME: 0.0.0.0
|
||||||
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://backend:3001}
|
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://backend:3001}
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
networks:
|
|
||||||
- fiscal
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
||||||
networks:
|
|
||||||
fiscal:
|
|
||||||
# Remove external: true to let Docker Compose create the network automatically
|
|
||||||
# This is required for Coolify deployment where the network doesn't exist yet
|
|
||||||
|
|||||||
Reference in New Issue
Block a user