Quick Start with docker #183
Closed
zhuyifeiRuichuang
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for documenting this. This recipe now carries stale operational assumptions: the editor runs on port 3002, the verified development-container path is #520, and the production Docker proposal remains #268 pending a multi-stage/non-root/health-check proof against current main. Closing this historical copy-paste recipe so it is not mistaken for supported current deployment guidance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you want to quick start and join in devlopment, you can use to docker fast make it.
git clone https://github.com/pascalorg/editor.git cd editorcreate
Dockerfilecreate
.dockerignorenode_modules npm-debug.log .git .gitignore .next .env .env.local .env.*.local .DS_Store dist build coverage .turbo .vscode .cursor .claudecreate
docker-compose.yamlservices: pascal-editor: build: context: . dockerfile: Dockerfile container_name: pascal-editor ports: - "3000:3000" environment: - NODE_ENV=production - NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=${NEXT_PUBLIC_GOOGLE_MAPS_API_KEY:-} - PORT=3000 restart: unless-stopped healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"] interval: 30s timeout: 10s retries: 3 start_period: 40s # opetion: limit # deploy: # resources: # limits: # cpus: '2' # memory: 2G # reservations: # cpus: '1' # memory: 1Gcreate
.env,if you want to use Google Maps API,all start
Beta Was this translation helpful? Give feedback.
All reactions