Docker behind a proxy, and elkarte conversion

AI-generated summary

tetricky has two questions regarding running Discourse behind a proxy and migrating from Elkarte. They are using Docker Compose with a shared network for multiple domains and are unsure how to integrate the Discourse container into this setup. Additionally, they have an Elkarte forum (based on SMF) and are wondering if the SMF importer will work with Elkarte’s database schema.

pfaffman suggests trying the SMF importer and references a resource on import procedures: https://www.literatecomputing.com/discourse-migration/.

riking recommends using the socketed-nginx setup and sharing the filesystem volume with the nginx container instead of using a Docker network link for a possible solution to the proxy issue.

I have a couple of questions, which will hopefully point me in the right direction. I’m going around in circles in my head.

Firstly: I have a well powered vps, that I’m running a number of web-apps, behind an nginx proxy, providing letsencrypt certificates. I am using docker compose to spin up what I need, and running containers on a docker-network so that I can re-use them between multiple domains (eg shared databases). I set environment variables for the different domains (vhosts), and expose the ports for the nginx proxy to work for these domains within the docker compose file. I don’t entirely understand the installation for discourse - how can I join the discourse docker container to this network, and expose the ports to the proxy?

Secondly: For historical reasons I have an smf forum, which has become an elkarte forum. Elkarte is based on smf and I think the database schema is the same (if with some additions). Would the smf importer work with this database, or am I going to have to modify it based on the differences? I lack the skill set to do this quickly, so any advice would be appreciated.

Any guidance that points me in the right direction would be much appreciated.

You don’t know until you try. Here’s my info on imports: Redirecting…. It’s stuff that I need to do when doing an import, but it might give you some insights.

You might have the best luck using the socketed-nginx setup, and sharing that filesystem volume with your nginx container instead of using a docker network link.