diff --git a/docker/docker-compose-template.yaml b/docker/docker-compose-template.yaml index accea0a252..cb78381e24 100644 --- a/docker/docker-compose-template.yaml +++ b/docker/docker-compose-template.yaml @@ -115,6 +115,20 @@ services: ENABLE_WEBSITE_JINAREADER: ${ENABLE_WEBSITE_JINAREADER:-true} ENABLE_WEBSITE_FIRECRAWL: ${ENABLE_WEBSITE_FIRECRAWL:-true} ENABLE_WEBSITE_WATERCRAWL: ${ENABLE_WEBSITE_WATERCRAWL:-true} + + # Admin platform frontend + admin: + image: akiyu303/jim-admin:latest + restart: always + environment: + NEXT_PUBLIC_API_URL: ${ADMIN_API_URL:-https://qingsu.chat} + depends_on: + - api + healthcheck: + test: [ 'CMD', 'curl', '-f', 'http://localhost:3000/admin' ] + interval: 30s + timeout: 10s + retries: 3 # The postgres database. db: image: postgres:15-alpine @@ -308,6 +322,7 @@ services: depends_on: - api - web + - admin ports: - '${EXPOSE_NGINX_PORT:-80}:${NGINX_PORT:-80}' - '${EXPOSE_NGINX_SSL_PORT:-443}:${NGINX_SSL_PORT:-443}' diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 37f4736201..c2bee2ffe6 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -627,6 +627,20 @@ services: ENABLE_WEBSITE_JINAREADER: ${ENABLE_WEBSITE_JINAREADER:-true} ENABLE_WEBSITE_FIRECRAWL: ${ENABLE_WEBSITE_FIRECRAWL:-true} ENABLE_WEBSITE_WATERCRAWL: ${ENABLE_WEBSITE_WATERCRAWL:-true} + + # Admin platform frontend + admin: + image: akiyu303/jim-admin:latest + restart: always + environment: + NEXT_PUBLIC_API_URL: ${ADMIN_API_URL:-https://qingsu.chat} + depends_on: + - api + healthcheck: + test: [ 'CMD', 'curl', '-f', 'http://localhost:3000/admin' ] + interval: 30s + timeout: 10s + retries: 3 # The postgres database. db: image: postgres:15-alpine @@ -820,6 +834,7 @@ services: depends_on: - api - web + - admin ports: - '${EXPOSE_NGINX_PORT:-80}:${NGINX_PORT:-80}' - '${EXPOSE_NGINX_SSL_PORT:-443}:${NGINX_SSL_PORT:-443}' diff --git a/docker/nginx/conf.d/default.conf.template b/docker/nginx/conf.d/default.conf.template index 2e4fe224fa..4bddc40f77 100644 --- a/docker/nginx/conf.d/default.conf.template +++ b/docker/nginx/conf.d/default.conf.template @@ -46,7 +46,7 @@ server { } location /admin { - proxy_pass http://host.docker.internal:3000; + proxy_pass http://admin:3000; include proxy.conf; }