Matomo on Railway
Anyone know a good way I can setup Matomo on Railway?
I know how to do it on a normal VPS or local, but since I cant interact with console I am unsure how to do this. Any help is appreciated!
28 Replies
Project ID:
N/A
N/A
do they provide a docker image?
yes
I actually was looking into the run local feature in railway
I assume I copy the github on my computer and set it up there?
run local feature?
What I mean is I see that I can run a project locally, which I believe can be used to set up the software. Am I on to something here?
yes you can but I'd just run the docker image on Railway
I'll see what I can do later tonight
This is current error I get for git: https://github.com/matomo-org/docker
GitHub
GitHub - matomo-org/docker: Official Docker project for Matomo Anal...
Official Docker project for Matomo Analytics. Contribute to matomo-org/docker development by creating an account on GitHub.
ALl I did was add create a space with MYSQL and this git, added the required env variables, and thats it
I wouldn't use a repo
So how else? Sorry as u can see I am new to Railway
I'll see what I can do
(I'll try to make the template)
Oh I really appreciate it, doing some of my own research now as well
I'll be honest, it would be quite the task for someone new to railway to undertake
Appreciate the warning, gonna try for 10 min and see what happens
Yeah I got it to build but now just stuck on deployment error
are you using a docker image?
In case it helps you here is my docker file
Yeah the docker github I sent earlier
a dockerfile and a docker image are two different things btw
matomo does provide a docker image, and it is highly preferable to use a docker image over a github repo with a dockerfile in it
Hmm I see. I should learn more about docker tbh...
it would be beneficial
Yeah...
Wow I hate myself
U were right, SO much easier
Weirdly enough, it is still roughly same error
yeah I'll have to look Into it later
Ok appreciate your time and help 🙂
Side note:
I got the error to leave by adding start command "sh -c "echo 'ServerName s.xxxx.com' >> /etc/apache2/apache2.conf && apache2-foreground""
But service is still unreachable on my custom domain, I am guessing its a port issue
Got it working more
sh -c "echo 'ServerName s.xxx.com' >> /etc/apache2/apache2.conf && apache2-foreground && echo 'Listen $PORT' >> /etc/apache2/ports.conf"
now I get
on website, looking how I can fix this on railwaySolution
hey give this a try and let me know if anything is broken?
https://railway.app/template/MiHicG
@oz ^
This worked perfectly thanks!
Gonna test it more, your a legend!
yeah let me know if you run into issues, otherwise i will go ahead and publish this template to the templates marketplace
oh and I'm like to note that the template will still log stuff about the server name, but that's just a warning and there's nothing wrong with the server name it decides to use automatically
another note, communication to the mariadb is done exclusively over the private network and mariadb is not exposed externally in any way by default, if you wanted to enable access outside of the private network you can go to the databases settings to enable tcp proxying and enter the internal port mariadb listens on (3306) and use the username, password, host, and port to connect to the database externally, then once you no longer need external access you can remove the tcp proxy and all external access to the database will be severed without ever effecting the internal connection
I'd add these as notes to the template overview once I publish, but just thought I'd jot them down for you here