Quick Start with docker #183
Replies: 2 comments
|
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. |
|
Closing note updated: Docker is official now. #268 merged today, so That makes this recipe fully superseded rather than just stale — thanks for writing it, it carried people for four months. Two of its assumptions turned out to matter, and both are worth recording since anyone writing their own Dockerfile will hit them:
Full details in #263. Leaving this closed and pointing at the supported path. |
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
All reactions