- Use image reference instead of build context for Portainer stacks - Inline all environment variables (no env_file dependency) - Add .next, logs, Inspiration to .dockerignore - Explicit .env.local and .env.production in .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
image: my-weekly-todo:latest
|
|
ports:
|
|
- "13000:3000"
|
|
environment:
|
|
- DATABASE_URL=postgresql://root:WKE7xeZohxdZit7eObjG@db:5432/My-Weekly-ToDo-List?schema=public
|
|
- NEXTAUTH_SECRET=Ca7EoJzZSMJO2CkqwdWd
|
|
- NEXTAUTH_URL=https://todo.martin-bierschenk.de
|
|
- NEXT_PUBLIC_BASE_URL=https://todo.martin-bierschenk.de
|
|
- SMTP_HOST=w00ff033.kasserver.com
|
|
- SMTP_PORT=587
|
|
- SMTP_USERNAME=mail@carrylight.de
|
|
- SMTP_PASSWORD=QijU8e2A8p3FE8WS8esR
|
|
- SMTP_SECURE=true
|
|
- GOOGLE_CLIENT_ID=196368743757-1fn17q2ecg5n8rej4tu96khltno173he.apps.googleusercontent.com
|
|
- GOOGLE_CLIENT_SECRET=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
|
|
- GOOGLE_REDIRECT_URI=https://todo.martin-bierschenk.de/api/calendar/google/oauth
|
|
- MICROSOFT_CLIENT_ID=a6ea3972-2e4a-4a24-b50f-4047867d8de3
|
|
- MICROSOFT_CLIENT_SECRET=9649da1a-9057-4ac5-ad5a-73cf1cef9478
|
|
- MICROSOFT_REDIRECT_URI=https://todo.martin-bierschenk.de/api/calendar/outlook/callback
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- app_logs:/app/logs
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_DB: My-Weekly-ToDo-List
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: WKE7xeZohxdZit7eObjG
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "15432:5432"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
app_logs:
|