# Web Server for Website with Tryon

**URL:** https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023
**Category:** Developer
**Created:** [July 14, 2020, 7:25pm UTC](https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023 "2020-07-14T19:25:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TelematicMan](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@TelematicMan](https://discuss.tryton.org/u/TelematicMan)
#### Post date: [July 14, 2020, 7:25pm UTC](https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023/1 "2020-07-14T19:25:16Z")

</div>

Is it feasible to run a website using the same Web Server for the Website that Tryton is using in the same Docker?  
[www.mydomain.com](http://www.mydomain.com)  
and  
[www.tryton.mydomain.com](http://www.tryton.mydomain.com)

Or is it better to run a separate Docker with the Web Server. I would like to run both on the same beefy server.

Which is the best way? Would there be issues with either configurations? Thanks for any advice!

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [July 14, 2020, 7:57pm UTC](https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023/2 "2020-07-14T19:57:25Z")

</div>

So, to answer your question, yes it is feasible to run a website using the same server that you use for Tryton. Although you really don’t want them both to be in the same docker image.

The idea with docker is that each different component, or service, should have its own image and then should run in its own container. You may want to look at [the 12 factor app](https://12factor.net/) to get some idea of the methodology.

So for example, with Tryton you might be running containers for:

- postgresql
- trytond
- trytond-cron
- trytond-worker

Each of these would be a separate container, (but all the tryton ones would be using the same docker image).

Often people will also have an [Nginx container](https://hub.docker.com/_/nginx) that is used as a [reverse proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/). This would receive the connections for [www.example.com](http://www.example.com) and [tryton.example.com](http://tryton.example.com), and any other domain whose DNS record points to the server. It would then connect the correct requests with the containers that should serve them. So you would obviously also need a container that contains your website.

Hopefully that helps - at least a little bit!

---

<div class="post-metadata">

### Author: ![TelematicMan](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@TelematicMan](https://discuss.tryton.org/u/TelematicMan)
#### Post date: [July 14, 2020, 10:29pm UTC](https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023/3 "2020-07-14T22:29:57Z")

</div>

Dave Thanks for the awesome advice. This does look like the way to go. If I was doing this all in windows it would be no problem for me. Linux is not my wheel house however seems like the same concept as using a router or Windows DNS server and such. All you guys on this forum are really great and super responsive. I have learned a boat load of information here. I hope soon I will be versed enough to pitch and help pay back some of the help I have recieved. If there were more windows questions I could LOL. Thanks TelematicMan

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [July 15, 2020, 8:29am UTC](https://discuss.tryton.org/t/web-server-for-website-with-tryon/3023/4 "2020-07-15T08:29:23Z")

</div>

> [@TelematicMan](#):
>
> Thanks for the awesome advice.

You’re welcome.

> [@TelematicMan](#):
>
> All you guys on this forum are really great and super responsive.

Yes, there are some very good people on here. 👍
