I cannot seem to get a valheim image pull working - containers

I am new to Raspberry Pi and docker etc, however I have managed to set it up and install docker and portsiner following simple instructions online and all is working well however, I am trying to run a Valheim server, but I must be doing something wrong when setting up the container because I can't connect to it even locally after pulling the image. I'm a bit out of my depth and have fallen at the final hurdle. I likely haven't explained this well either so apologies.

Related

first path segment in URL cannot contain colon error in gitrunner register

I have tried various ways which is available on stack overflow but not single one works .i was getting error everytime whenever i tried to register my gitlab runner everytime please provide descriptive answer
error: first path segment in URL cannot contain colon error
Since you did not provide a description of your setup, it is hard to pin down the problem. I'm also not an expert on GitLab and I just recently started tinkering around with my own local GitLab instance installed via Docker.
For me I wanted to connect a GitLab-Runner to my GitLab in the local network. That's where I tumbled upon the error you are mentioning. I am using a different port for the GitLab server, which was neccessary because some other services are already using the default ports. The solution for me was to add the prefix http:// in front of the ip. After that, the registration went flawlessly.
So instead of writing for example
123.456.789.XXX:YYYY
I had to write
http://123.456.789.XXX:YYYY
Of course the ip can be different according to your network.
If you provide more information, it would be easier to solve your problem.
And in case you solved it on your own, feel free to share your solution.

i would like to know few things about how to host and upload full website include(server ,react, mysql)

Finally i completed my first full project using server, client, data
i would like to know few things about how to host and upload full website include(server ,react, mysql)
i so wondering how that is work, for now i understand that to upload a simple website you need a domain and to hosting, just do npm run build and upload it..., this is something that i know but, when that is not just a simple website like
when i have such as
server side with Node.js + express that have requests (on localhost) *probably need to change the localhost to something else but what
Database running with MySql
React app that have many request to (localhost)
how can i hosting all of them and running my website for everyone, i mean that my sql will still running, CRUD Data will update normal, and the server will still get request and send or update them to mysql data.
and if I'll want to make some change on mysql, server, client
i want to change it like i change it now
Actually i'm not a FullStack developer if i don’t know it... 🥶 so i really interesting to understand all of that issues
i hope you guys havק An understandable answer for me, thanks 🙏 and just take your time :)
Well, where to start hehe. There are a lot of different ways to host a web app. Heroku for example makes this process really simple.
Personally, I use Digital Ocean to host my apps. This is generally how that goes:
I have a project with a folder structure that seperates the server logic and the client logic.
Since you're using Node, you build your client with npm run build. Next make sure the dist/build folder is inside your server folder. That is the folder you are going to 'host'. On Digital Ocean, you make a new droplet (which basically is just a tiny part of a server).
You install Node, Git, Pm2 and (for example) Nginx. You clone your project from Github to the server and install all the dependencies.
You have to do a few configurations with nginx (specifying a domain name for example) to make everything work. This article goes into more detail about that.
Also, a database is frequently hosted seperately. You should read more about that.
If you have everything setup, you can just code on your project as usual. Push new updates to github, and pull in the changes on the server.
Here is another post on Stackoverflow talking about hosting MySql with react.

PHP, Apache and MySQL in the same Docker container (same Dockerfile)

I need an image with all 3 items in the same container, I know it is not a good practice, I know docker is solving the scalability, redundancy and availability issues by splitting services, etc. For all my projects I separate the services but for this project in specific I need all 3 services running under the same container.
So far I can run apache or mysql but not both at the same time, some issues with the entrypoints, some issues with the mysql permissions and I still haven't been able to get them all together in the same container up and running.
Has anyone faced this issue? Maybe some documentation I have missed?
Thank you
I've solved this before for a purely-local dev testing environment (because as you stated, this isn't normally a good practice).
What I did was start my Docker image from Alpine Linux, and then installed PHP, MySQL, and Nginx on top of it. You'll also need to COPY your source files into the container and set their appropriate permissions with chmod or chown.
Alternatively, you can use a volume as well, but depending on your OS you might run into permissions issues unless you create the same user/group in your container that owns the files on your local system.
If you'd like some inspiration, you can view the Dockerfile for the container that I've mentioned in the above.

Laravel project on heroku with db4free not creating new users

I've got my laravel project deployed on heroku, I finally got almost everything working, I have the Procfile which changes the home directory, and my CSS doesn't give mixed content errors anymore.
I've set up a database with db4free.net, and set up the env file accordingly, I've also set up the heroku config vars as well.
Using the Heroku CLI I ran bash, and migrated, this did create the tables correctly. The issue I'm facing now is that when I go to register, it seems to have worked and redirects to the homepage, however the data is never entered to the DB so I cannot log in with these details.
I haven't changed anything to do with the registering code thats provided in the auth package.
So it WAS all working, Heroku and especially db4free are pretty slow at updating

Why are none of the changes I made to my project being made? Tomcat server with Docker database

I am running tomcat locally and a mysql database in Docker and I have made changes to my .jsp files yet none of these changes are reflected in the website when I run it. I have tried rebuilding the artifacts and even manually creating them again yet the original website remains with no changes. I even tried to run everything through docker with docker-compose and the same thing happens, even when I remove all the images and rebuild the artifacts. I've been going in circles for days trying to fix it with no luck.
Any help greatly appreciated.