Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过docker-compose.yaml配置excalidraw环境 #25

Closed
yinhuihe opened this issue Aug 21, 2023 · 2 comments
Closed

通过docker-compose.yaml配置excalidraw环境 #25

yinhuihe opened this issue Aug 21, 2023 · 2 comments

Comments

@yinhuihe
Copy link

大佬好!
可不可以通过docker-compose.yaml来配置excalidraw环境变量,这样方便在不同的环境部署,不用重复构建,下面是我的yaml,我这样写了,但是没有用,请大佬解惑,谢谢!

services:
  frontend:
    image: excalidraw:v0.1.0-5b2dbad-dirty
    environment:
      - REACT_APP_BACKEND_V2_GET_URL=https://draw.gc-boy.com/api/v2/
      - REACT_APP_BACKEND_V2_POST_URL=https://draw.gc-boy.com/api/v2/post/
      - REACT_APP_LIBRARY_URL=https://libraries.excalidraw.com
      - REACT_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
      - REACT_APP_HTTP_STORAGE_BACKEND_URL=https://draw.gc-boy.com/api/v2
      - REACT_APP_STORAGE_BACKEND=http
      - REACT_APP_PORTAL_URL=null
      - REACT_APP_WS_SERVER_URL=https://draw.gc-boy.com
      - REACT_APP_FIREBASE_CONFIG="{}"
      - REACT_APP_GOOGLE_ANALYTICS_ID=foo
      - REACT_APP_PLUS_APP=https://app.excalidraw.com
    ports:
      - 80:80

  storage:
    image: excalidraw-storage-backend:v0.1.0-5b2dbad-dirty
    restart: always
    environment: # docs https://github.com/alswl/excalidraw-storage-backend#environement-variables
      - PORT=8081
    ports:
      - 8081:8081

  room:
    image: excalidraw-room:v0.1.0-5b2dbad-dirty
    ports:
      - 8082:80
@alswl
Copy link
Owner

alswl commented Aug 21, 2023

这些环境变量需要打包放到容器内部才能生效,无法通过调整 Docker Compose 配置生效。

简单说:跟着 README 不要走歪,暂时没精力去优化上游代码。

@yinhuihe
Copy link
Author

谢谢大佬,那就不去折腾了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants