add docker compose deployment docs
This commit is contained in:
22
docker_compose.yaml
Normal file
22
docker_compose.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
gemini-draw:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: gemini-draw
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env.local
|
||||
environment:
|
||||
API_PORT: "3002"
|
||||
API_AUTH_DISABLED: "false"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3002:3002"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3002/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
Reference in New Issue
Block a user