Back

Appwrite under Portainer + Traefik

  • 0
  • Self Hosted
ZachHandley
16 Dec, 2023, 15:51

Hey just curious, I understand traefik enough I believe to figure this out, but essentially I have to replace the traefik block, it autogenerates SSL certs for me, so I bet I can replace that too but I’m a bit lost if I should mount the storage and stuff still, or what I need to do fully

Has anyone set up Appwrite without the traefik in the docker-compose that can chime in?

TL;DR
User is asking for help setting up Appwrite without using Traefik in the docker-compose. They mention that Traefik is already being used in Portainer. They provide the current docker-compose file. User is unsure if they should still mount the storage and asks if anyone has set up Appwrite without Traefik. Another user asks why they want to replace Traefik to which the user responds that they prefer to use a central Traefik instance. Another user mentions that they have gotten it working by replacing all the Appwrite network spots with Traefik's external network, but the page doesn't load and they are unsure
D5
16 Dec, 2023, 16:39

Why do you want to replace traefik?

ZachHandley
16 Dec, 2023, 16:40

because Traefik already exists in my portainer

ZachHandley
16 Dec, 2023, 16:40

Traefik + Portainer gets portainer up and running, and I'd rather use a central traefik instance but

ZachHandley
16 Dec, 2023, 16:41

got this rn

TypeScript
services:
  appwrite:
    image: appwrite/appwrite:1.4.13
    container_name: appwrite
    <<: *x-logging
    restart: unless-stopped
    networks:
      - appwrite
      - traefik
    labels:
      - traefik.enable=true
      - traefik.docker.network=appwrite
      # http
      - traefik.http.routers.appwrite.rule=Host(`appwrite.qmpleterx.com`)
      - traefik.http.routers.appwrite.entrypoints=web
      - traefik.http.routers.appwrite.tls.certresolver=letsencryptresolver
      - traefik.http.services.appwrite.loadbalancer.server.port=80
      # https
      - traefik.http.routers.appwrite_https.rule=Host(`appwrite.qmpleterx.com`)
      - traefik.http.routers.appwrite_https.entrypoints=websecure
      - traefik.http.routers.appwrite_https.tls.certresolver=letsencryptresolver
      - traefik.http.services.appwrite_https.loadbalancer.server.port=443
ZachHandley
16 Dec, 2023, 16:44

says too many services

D5
16 Dec, 2023, 16:45

Never used portainer so no idea unfortunately 😓

ZachHandley
16 Dec, 2023, 16:45

it's just docker

ZachHandley
16 Dec, 2023, 16:45

but in a web interface

ZachHandley
16 Dec, 2023, 16:45

the issue is I use Traefik to route the portainer interface

ZachHandley
16 Dec, 2023, 17:46

@Drake I don't know who to ping but I got this working in terms of appwrite runs by replacing all the Appwrite network spots with Traefik's external network, but it doesn't load the page and idk about SSL certs and stuff but

ZachHandley
16 Dec, 2023, 17:46

there really should be a guide on this

ZachHandley
16 Dec, 2023, 17:46

Docker Swarm + Appwrite should be prod and there's no guide other than a one click install

ZachHandley
16 Dec, 2023, 18:01
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more