muchobien / pocketbase-docker

Pocketbase docker image
345 stars 59 forks source link

APP_URL environment variable doesn't seem to have an effecct #21

Closed punowo closed 9 months ago

punowo commented 9 months ago

Hello. I'm currently trying to setup pocketbase like this:

version: "3.7"
services:
  pocketbase:
    image: ghcr.io/muchobien/pocketbase:latest
    container_name: pocketbase
    restart: unless-stopped
    ports:
      - "8000:8090"
    volumes:
      - /opt/pocketbase/data:/pb_data
      - /opt/pocketbase/public:/pb_public
    environment:
      - APP_URL=http://IP_ADDRESS:8000

Is there a reason pocketbase doesn't see this environment variable ? When I echo from inside the container it's the right value, but in mail templates pocketbase keeps using localhost:8090

punowo commented 9 months ago

Sorry, not a bug. I thought for some reason those are environment variables.