Any plans for a docker image of this? #2

Closed
opened 2020-10-09 12:32:10 +08:00 by vswraith · 8 comments
vswraith commented 2020-10-09 12:32:10 +08:00 (Migrated from github.com)
No description provided.
MatthK commented 2020-10-09 14:53:48 +08:00 (Migrated from github.com)

I have had a look and gave it a try. As I don't have any experience with creating docker images, it didn't work out.

For the time being I have abandoned that idea, as I want to make a few more improvements on the solution itself instead of investing time on the docker image. I'd be happy to add that with getting some help with that. Some specific issues I have:

  • How to get two virtual hosts/websites in one docker?
  • How to get a cron job running in the docker image?
  • How to get the mysql database in the same docker?

I also tried with docker-compose, but face at least the first two questions there too. And when I tried the docker-compose, how can I link it to my existing MySQL docker?

I have had a look and gave it a try. As I don't have any experience with creating docker images, it didn't work out. For the time being I have abandoned that idea, as I want to make a few more improvements on the solution itself instead of investing time on the docker image. I'd be happy to add that with getting some help with that. Some specific issues I have: - How to get two virtual hosts/websites in one docker? - How to get a cron job running in the docker image? - How to get the mysql database in the same docker? I also tried with docker-compose, but face at least the first two questions there too. And when I tried the docker-compose, how can I link it to my existing MySQL docker?
guim31 commented 2020-10-11 03:25:22 +08:00 (Migrated from github.com)

I'm sad I can't help you ! Maybe you should ask Linuxserver to see if they could create a docker container !

I'm sad I can't help you ! Maybe you should ask Linuxserver to see if they could create a docker container !
dseller commented 2021-02-06 23:36:52 +08:00 (Migrated from github.com)

How to get two virtual hosts/websites in one docker?

You would use a webserver like Nginx to handle that for you. Just make sure you configure it right and you can expose two ports instead of one. That would be a possible solution, and I think the easiest one to achieve.

How to get a cron job running in the docker image?

That is tricky. In my experience, cron and docker containers do not work together very well. There are some tutorials about this though. Make sure you use a proper solution like supervisord when running multiple processes in one container.

How to get the mysql database in the same docker?

Typically, you don't. The database usually runs in a different container (or bare metal, depends on the environment). You would usually provide a few environment variables to the docker container to tell the application where the database server is (e.g. DB_HOST, DB_USER, DB_PASS, etc.)

Hope it helps.

> How to get two virtual hosts/websites in one docker? You would use a webserver like Nginx to handle that for you. Just make sure you configure it right and you can expose two ports instead of one. That would be a possible solution, and I think the easiest one to achieve. > How to get a cron job running in the docker image? That is tricky. In my experience, cron and docker containers do not work together very well. There are some tutorials about this though. Make sure you use a proper solution like `supervisord` when running multiple processes in one container. > How to get the mysql database in the same docker? Typically, you don't. The database usually runs in a different container (or bare metal, depends on the environment). You would usually provide a few environment variables to the docker container to tell the application where the database server is (e.g. `DB_HOST`, `DB_USER`, `DB_PASS`, etc.) Hope it helps.
potts99 commented 2021-04-23 22:23:25 +08:00 (Migrated from github.com)

Is this still an issue? I have worked on docker files for my OSS project and managed to get it working

Is this still an issue? I have worked on docker files for my OSS project and managed to get it working
MatthK commented 2021-04-26 19:54:38 +08:00 (Migrated from github.com)

Yes, it is. I haven't tried working on that anymore. If you can help, that would certainly be a welcome addition.

Yes, it is. I haven't tried working on that anymore. If you can help, that would certainly be a welcome addition.
potts99 commented 2021-04-26 21:03:53 +08:00 (Migrated from github.com)

I'll take a look tonight and create a docker file for you :)

I'll take a look tonight and create a docker file for you :)
vswraith commented 2021-08-09 14:39:51 +08:00 (Migrated from github.com)

@potts99 were you able to create the docker file? Can you please help share?

@potts99 were you able to create the docker file? Can you please help share?
MatthK commented 2021-09-20 22:40:55 +08:00 (Migrated from github.com)
Here you go: [https://github.com/MatthK/swfd](https://github.com/MatthK/swfd)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
forgejo/Selfoss-Webfront#2
No description provided.