Skip to content

Commit

Permalink
update docker-compose.yml.
Browse files Browse the repository at this point in the history
Signed-off-by: 红薯丸子 <[email protected]>
  • Loading branch information
红薯丸子 authored and gitee-org committed Oct 30, 2024
1 parent 49319f4 commit 81f18d1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ x-postgres:
image: "ankane/pgvector:v0.5.1"
user: postgres
healthcheck:
test: "exit 0"
interval: 2s
timeout: 12s
retries: 3

test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5

services:
postgres:
Expand All @@ -17,7 +16,7 @@ services:
expose:
- 5432
ports:
- "5432:5432"
- "5434:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -73,6 +72,7 @@ services:
postgres:
condition: service_healthy


api:
build:
context: .
Expand All @@ -96,8 +96,8 @@ services:
- IMAGE_PROXY_SECRET=some-secret
- JWT_SECRET=some_secret
- SSO_JWT_SECRET=some_sso_secret
- CLIENT_URL=http://localhost:3000
- GATEWAY_URL=http://localhost:8080/api
- CLIENT_URL=http://192.168.1.112:3000
- GATEWAY_URL=http://api:8080/api
- CONTENT_FETCH_URL=http://content-fetch:8080/?token=some_token
depends_on:
migrate:
Expand All @@ -109,17 +109,17 @@ services:
dockerfile: ./packages/web/Dockerfile
args:
- APP_ENV=prod
- BASE_URL=http://localhost:3000
- SERVER_BASE_URL=http://localhost:4000
- HIGHLIGHTS_BASE_URL=http://localhost:3000
- BASE_URL=http://192.168.1.112:3000
- SERVER_BASE_URL=http://192.168.1.112:4000
- HIGHLIGHTS_BASE_URL=http://192.168.1.112:3000
container_name: "omnivore-web"
ports:
- "3000:8080"
environment:
- NEXT_PUBLIC_APP_ENV=prod
- NEXT_PUBLIC_BASE_URL=http://localhost:3000
- NEXT_PUBLIC_SERVER_BASE_URL=http://localhost:4000
- NEXT_PUBLIC_HIGHLIGHTS_BASE_URL=http://localhost:3000
- NEXT_PUBLIC_BASE_URL=http://192.168.1.112:3000
- NEXT_PUBLIC_SERVER_BASE_URL=http://192.168.1.112:4000
- NEXT_PUBLIC_HIGHLIGHTS_BASE_URL=http://192.168.1.112:3000
depends_on:
api:
condition: service_healthy
Expand Down Expand Up @@ -148,4 +148,4 @@ services:
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]

0 comments on commit 81f18d1

Please sign in to comment.