Docker - example needed

Hey, I would like to learn how to create a project from the scratch, using docker. The project can have a docker composer, a few connections required with database, etc. I tried to find an video or tutorial on the internet, but I didn't find. I found videos teaching how to use github, but not creating a complex docker composer to Railway. I know docker composer is not supported, and that is the question: I need to create a project using one, but it will be much more work. Do you know any video or tutorial from anyone creating a project from a docker composer, spliting it in a docker fil to create the project. Example: someone creating a N8N from zero - in video or tutorial?
9 Replies
Percy
Percy6mo ago
Project ID: N/A
Medim
Medim6mo ago
You can't use docker composer, but you can separate every service in a docker composer on their own separate repo and dockerfile
Elber Domingos
Elber Domingos6mo ago
I know - and that is my questions: do you know any video or tutorial teaching that? using multiple volumes, database - like N*N N8N
Medim
Medim6mo ago
Not specifically like this, but I can't see why dockerfile knowledge isn't suficient for your task thonk has a N8N template, you can take a look
Medim
Medim6mo ago
https://railway.app/template/r2SNX_ It doesn't has a live demo, but you can deploy it
Railway
Deploy N8N on Railway
A powerful workflow automation tool for technical people
Elber Domingos
Elber Domingos6mo ago
I want to learn how to do it I have N8N running in my Railway. I just want to learn how to create one from scratch how to create a template, for example @Medim thank you for your help....if you know any tutorial, let me know
Medim
Medim6mo ago
Np, I don't get exactly what u mean with 'create' since railway simply deploys dockerfiles and images, but let's wait for someone with more knowledge to answer you salute
Elber Domingos
Elber Domingos6mo ago
Let me try again: I am new to the docker world. I would like to learn how to create projects that does not exist as a template. The majority of the projects that has docker, they use docker compose. I need to learn from example, how to get a docker compose, transform it in a docker file, and create the instances of each thing in the docker - for example - the application its self with the variables (that does not create by itself for what I saw before), the databases linked with the application, the volumes, the ports - the variables to have the automatically ports inserted in the docker - there is so many details....this is it. I need a tutorial teaching that. For example - I would like to install the Portainer in Railway - after trying through the template I realised that it was not working. Than I decided to install by myself. I just used the docker from docker hub, but after installing, it didn't work. I know I need to do a lot more configuration, but I doesn't know how to do it. Or how to install the database and link it to the Portainer instance
Brody
Brody6mo ago
railway doesn't have any tutorials for this, though at a high level it is very simple. using n8n as an example, you go read all n8n's self hosted documentation, they provide you with things like docker compose, sample env files, etc etc, then you just build out each service listed in the docker compose file as services in your railway project, setting up the environment variables as you go along, and any other configurations the service may need until your railway project matches the docker compose file