Hosting Static HTML & CSS Files via Docker in Coolify #6770
surjithctly
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I had a use-case where I have to host some static html & css files like the olden days using FTP. I cannot use git for some reason, So i tried to use Docker to host it.
I created a new Dockerfile resource and then added a basic nginx server.
Now, in coolify settings -> Persistant Storage, I have added a Directory Mount as follows.
Source Path
/var/www/html/my-folder(I manually copied files to this folder via root@ssh)
Destination Path
/usr/share/nginx/htmlNow, I redeployed the server and it worked as expected.
As I'm new to Docker, sharing this here so it will be helpful for someone in the future. If you know about docker, please share if this one has any problem.
Beta Was this translation helpful? Give feedback.
All reactions