Skip to main content

Docker Compose

Quick Start

Create a docker-compose.yml file:

services:
fdm-monster:
container_name: fdm-monster
image: fdmmonster/fdm-monster:2
restart: unless-stopped
deploy:
restart_policy:
delay: 5s
window: 120s
ports:
- "4000:4000"
volumes:
- fdm-monster-media:/app/media
- fdm-monster-database:/app/database

volumes:
fdm-monster-media:
fdm-monster-database:

Run the container:

docker-compose up -d

Access FDM Monster at http://localhost:4000

Docker Image

The FDM Monster Docker image can be found on Docker Hub.

Image Tags

Multiple tags are available for the fdmmonster/fdm-monster image:

  • latest - The latest stable release
  • 2, 2.0, 2.0.0 - Specific version tags
  • main - Latest stable development version (same as latest)
  • develop - Latest development version (not recommended for production)
  • x.y.z-rc1-1234 - Release candidates (not recommended for production)

Environment Variables

FDM Monster can be customized using environment variables. Here are some common ones:

services:
fdm-monster:
container_name: fdm-monster
image: fdmmonster/fdm-monster:2
restart: unless-stopped
ports:
- "4000:4000"
environment:
- SERVER_PORT=4000
- NODE_ENV=production
- OVERRIDE_LOGIN_REQUIRED=true
- OVERRIDE_IS_DEMO_MODE=false
volumes:
- fdm-monster-media:/app/media
- fdm-monster-database:/app/database

volumes:
fdm-monster-media:
fdm-monster-database:

Common options:

  • SERVER_PORT - Change the server port (default: 4000)
  • NODE_ENV - Set environment mode (options: development, production)
  • OVERRIDE_LOGIN_REQUIRED - Require login (default: true)
  • OVERRIDE_IS_DEMO_MODE - Enable demo mode (default: false)

For the complete list of environment variables and detailed configuration options, see the Environment Variables Guide.

Additional Resources