Files
gnommoeditor/docker-compose.prod.yml
T

53 lines
1.4 KiB
YAML
Raw Normal View History

2026-04-11 09:24:21 +02:00
# GnommoEditor — Production
2026-04-12 00:17:29 +02:00
# Usage: ./deploy.sh (local) or bash start.sh (on the server)
# The `gnommo` network is created automatically by start.sh if it doesn't exist.
# gu_common must be running to provide gnommo-db (postgres) and gnommo-minio.
2026-04-11 09:24:21 +02:00
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: gnommoeditor-backend
restart: unless-stopped
environment:
NODE_ENV: production
PORT: 3001
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@gnommo-db:5432/${POSTGRES_DB}
INGEST_API_KEY: ${INGEST_API_KEY}
JWT_SECRET: ${JWT_SECRET}
CORS_ORIGIN: https://${EDITOR_DOMAIN}
MINIO_ENDPOINT: http://gnommo-minio:9000
MINIO_PUBLIC_URL: https://glitch.university/media
MINIO_BUCKET: glitch-university
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
2026-05-13 08:13:06 +02:00
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
2026-04-11 09:24:21 +02:00
expose:
- "3001"
networks:
- default
2026-04-11 21:11:11 +02:00
- gnommo
2026-04-11 09:24:21 +02:00
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
VITE_GNOMMOWEB_URL: ${VITE_GNOMMOWEB_URL}
container_name: gnommoeditor-frontend
restart: unless-stopped
expose:
- "80"
depends_on:
- backend
networks:
- default
2026-04-11 21:11:11 +02:00
- gnommo
2026-04-11 09:24:21 +02:00
networks:
default: {}
2026-04-11 21:11:11 +02:00
gnommo:
2026-04-11 09:24:21 +02:00
external: true