Deploy

Docker

A minimal, non-production Docker Compose configuration.

This guide covers deploying Rapid Response using Docker and Docker Compose.

Minimal Configuration

With this configuration, you can run everything locally. This configuration is not recommended for production. It also assumes you have an s3 bucket.

services:
  redis:
    image: redis:5.0.7-alpine
  postgres:
    image: postgres:15-alpine
  nginx:
    image: rapidresponse/rapid-response-nginx
    command: sh run-nginx.sh
    ports:
      - "80:80"
      - "443:443"
    env_file: ../.env
    environment:
      - DEBUG=False
      - WEB_PORT=8000
      - SERVICE_NAME=web
    depends_on:
      - postgres
      - redis
      - web
  web:
    image: rapidresponse/rapid-response-code
    command: sh scripts/run-web.sh
    ports:
      - "8000:8000"
    env_file: ../.env
    environment:
      - DEBUG=False
      - PORT=8000
      - DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
      - REDIS_URL=redis://redis:6379/1
    depends_on:
      - postgres
      - redis
  worker:
    image: rapidresponse/rapid-response-code
    command: sh scripts/run-worker.sh
    env_file: ../.env
    environment:
      - DEBUG=False
      - DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
      - REDIS_URL=redis://redis:6379/1
    depends_on:
      - postgres
      - redis
Previous
Single node