|
| 1 | +--- |
| 2 | +description: A Guide about how to self host the Webinterface with Docker! |
| 3 | +--- |
| 4 | + |
| 5 | +# Self host with Docker |
| 6 | + |
| 7 | +## Docker Compose |
| 8 | + |
| 9 | +```yaml |
| 10 | +version: "3" |
| 11 | + |
| 12 | +services: |
| 13 | + frontend: |
| 14 | + name: frontend |
| 15 | + image: ree6/frontend |
| 16 | + environment: |
| 17 | + - BACKEND_URL=https://api.ree6.de # Change this to use your backend url |
| 18 | + - INVITE_URL=https://invite.ree6.de # Change this to your bot's invite link |
| 19 | + |
| 20 | + - HOST=0.0.0.0 # IP address to listen to |
| 21 | + |
| 22 | + - TZ=Europe/Berlin # Set your timezone |
| 23 | + - NODE_ENV=production # Internal server error messages will not send stacktrace to the browser in production |
| 24 | + |
| 25 | + # Uncomment the lines below to enable Traefik |
| 26 | + # Don't forget to uncomment the bottom of the file as well |
| 27 | + # Don't forget to comment out the `ports` section |
| 28 | + # labels: |
| 29 | + # - traefik.http.routers.ree6_frontend.rule=Host(`ree6.example.com`) # Set to your domain (+subdomain) |
| 30 | + # - traefik.http.routers.ree6_frontend.entrypoints=websecure |
| 31 | + # - traefik.http.routers.ree6_frontend.tls.certresolver=lets-encrypt |
| 32 | + # - traefik.http.routers.ree6_frontend.service=ree6_frontend |
| 33 | + # - traefik.http.services.ree6_frontend.loadBalancer.server.port=3000 # Must be same as `PORT` variable |
| 34 | + # networks: |
| 35 | + # - traefik |
| 36 | + ports: # Comment this out if using traefik |
| 37 | + - 3000:3000 # Comment this out if using traefik |
| 38 | + |
| 39 | + restart: unless-stopped |
| 40 | + backend: |
| 41 | + name: backend |
| 42 | + image: ree6/backend |
| 43 | + volumes: |
| 44 | + - /PATH/backend/config.yml:/config.yml |
| 45 | + depends_on: |
| 46 | + - db |
| 47 | + db: |
| 48 | + image: mariadb:latest |
| 49 | + environment: |
| 50 | + MYSQL_ROOT_PASSWORD: password |
| 51 | + MYSQL_DATABASE: ree6 |
| 52 | + MYSQL_USER: ree6 |
| 53 | + MYSQL_PASSWORD: ree6 |
| 54 | + volumes: |
| 55 | + - /PATH/db:/var/lib/mysql |
| 56 | + |
| 57 | +# Uncomment this to use everything in one stack. |
| 58 | +# ree6: |
| 59 | +# image: ree6/bot:3.1.12 |
| 60 | +# volumes: |
| 61 | +# - /PATH/bot/storage:/storage |
| 62 | +# - /PATH/bot/languages:/languages |
| 63 | +# - /PATH/bot/config.yml:/config.yml |
| 64 | +# depends_on: |
| 65 | +# - db |
| 66 | + |
| 67 | +# Uncomment this for Traefik |
| 68 | +# networks: |
| 69 | +# traefik: |
| 70 | +# external: true |
| 71 | +``` |
0 commit comments