# Docker behind a proxy, and elkarte conversion

**URL:** https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166
**Category:** Self-hosting
**Created:** [25.Апрель.2018 18:47:47 UTC](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166 "2018-04-25T18:47:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tetricky](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@tetricky](https://meta.discourse.org/u/tetricky)
#### Post date: [25.Апрель.2018 18:47:47 UTC](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166/1 "2018-04-25T18:47:47Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [26.Апрель.2018 01:10:53 UTC](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166/2 "2018-04-26T01:10:53Z")

</div>

> [@tetricky](#):
>
> 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.

You don’t know until you try. Here’s my info on imports: [Redirecting…](https://www.literatecomputing.com/discourse-migration/). It’s stuff that I need to do when doing an import, but it might give you some insights.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [26.Апрель.2018 06:13:34 UTC](https://meta.discourse.org/t/docker-behind-a-proxy-and-elkarte-conversion/86166/3 "2018-04-26T06:13:34Z")

</div>

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.
