Is there anyone who are using EasyEngine 4 + Discourse subfolder option?


#1

I would like to install EasyEngine+Discourse like www.example.com/forum/
Now EE4 using Docker and Discourse using Docker too. Any ideas how to build it together?

Installation guides and examples of nginx configurations are welcome. I understand very little at Docker and I still have to study this technology.


#2

Best to put discourse in a subdomain or it’s own domain. The key variables in your docker-compose.yml are:

  • VIRTUAL_HOST
  • VIRTUAL_PORT
  • networks

Here’s what my gitea’s .yml file look like:

version: "3.5"

services:
  server:
    image: gitea/gitea:latest
    environment:
      - VIRTUAL_HOST=git.domain.tld
      - VIRTUAL_PORT=3000
      - USER_UID=1000
      - USER_GID=1000
    restart: unless-stopped
    networks:
        global-frontend-network:
    volumes:
      - ./gitea:/data
    ports:
      - "3000:3000"
      - "2222:22"

networks:
  global-frontend-network:
    external:
      name: ee-global-frontend-network

#3

Sure. But I must use subfolder. I must adhere to the existing structure.
With subdomain or with it’s own domain I can use other VPS without EE. How can I do it with subfolder?


#4

Try changing VIRTUAL_HOST=domain.tld/discourse