Quick Start with docker #183
zhuyifeiRuichuang
started this conversation in
Show and tell
Replies: 0 comments
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