📖
Ree6
  • 🏠Home
    • Welcome to the Ree6 Wiki!
  • ✨Features
    • Community
    • Music System
  • 📒Database
    • Which Database is supported?
    • H2 as a Server
  • 🤖Bot
    • Self hosting
      • Self host with Pterodactyl
      • Self host with Docker
    • Plugin System
      • Installing Plugins
      • Create Plugins
    • StreamTools
    • Configurations
    • Translations
    • Troubleshooting
  • 🌐Webinterface
    • What is the Webinterface?
    • Self hosting
      • Self host with Pterodactyl
      • Self host with Docker
  • 🌎All-in-One
    • 🐋Docker
  • ⁉️Troubleshooting
    • Migration Failed!
  • 👴Legacy
    • Addon System
      • Make your first Addon
Powered by GitBook
On this page
  1. All-in-One

Docker

If you use docker here is a docker-compose file containing the frontend, backend, and the bot!

docker-compose.yml
services:
  bot:
    container_name: ree6_bot
    image: ree6/bot:latest
    environment:
      - config=/opt/ree6/config/config.yml
    volumes:
      - ./bot/storage/:/storage/
      - ./bot/languages/:/languages/
      - ./bot/config/:/opt/ree6/config/
    depends_on:
      - db
  frontend:
    container_name: ree6_frontend
    image: ree6/frontend:latest

    environment:
      - BACKEND_URL=https://api.ree6.de # Change this to use your backend url
      - INVITE_URL=https://invite.ree6.de # Change this to your bot's invite link

      - HOST=0.0.0.0 # IP address to listen to

      - TZ=Europe/Berlin # Set your timezone
      - NODE_ENV=production # Internal server error messages will not send stacktrace to the browser in production

    # Uncomment the lines below to enable Traefik
    # Don't forget to uncomment the bottom of the file as well
    # Don't forget to comment out the `ports` section
    # labels:
    #   - traefik.http.routers.ree6_frontend.rule=Host(`ree6.example.com`) # Set to your domain (+subdomain)
    #   - traefik.http.routers.ree6_frontend.entrypoints=websecure
    #   - traefik.http.routers.ree6_frontend.tls.certresolver=lets-encrypt
    #   - traefik.http.routers.ree6_frontend.service=ree6_frontend
    #   - traefik.http.services.ree6_frontend.loadBalancer.server.port=3000 # Must be same as `PORT` variable
    # networks:
    #   - traefik
    ports: # Comment this out if using traefik
      - 3000:3000 # Comment this out if using traefik

    restart: unless-stopped
  backend:
    container_name: ree6_backend
    image: ree6/backend:latest
    environment:
      - config=/opt/ree6/config/config.yml
    volumes:
      - ./backend/config/:/opt/ree6/config/
    depends_on:
      - db
  db:
    container_name: ree6_db
    image: mariadb:latest
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: ree6
      MYSQL_USER: ree6
      MYSQL_PASSWORD: ree6
    volumes:
      - ./db:/var/lib/mysql
PreviousSelf host with DockerNextMigration Failed!

Last updated 4 months ago

🌎
🐋