b31d6637a7
- Dockerfile: two-stage build (builder installs all deps + vite build; runtime copies dist + server) - docker-compose.yml: 127.0.0.1:3004:8080, named volume for SQLite, env var interpolation - .env.example: all required environment variables documented - .dockerignore: exclude node_modules, dist, data, .env from build context - vite.config.ts: outDir → ../client/dist, /api proxy to :3001 for dev - .gitignore: remove Docker entries (files should be tracked for deployment) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
499 B
YAML
22 lines
499 B
YAML
services:
|
|
morsequest:
|
|
image: morsequest:latest
|
|
container_name: morsequest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:3004:8080"
|
|
volumes:
|
|
- morsequest-data:/app/data
|
|
environment:
|
|
PORT: "8080"
|
|
NODE_ENV: production
|
|
SMTP_HOST: mail.keylinkit.net
|
|
SMTP_PORT: "587"
|
|
SMTP_USER: ${SMTP_USER}
|
|
SMTP_PASS: ${SMTP_PASS}
|
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
|
APP_URL: https://morsequest.keylinkit.net
|
|
|
|
volumes:
|
|
morsequest-data:
|