FXServer Docker Image - FiveM or RedM

I created a simple and light docker image from linux builds.

docker hub: https://hub.docker.com/r/routmoute/fxserver
github: https://github.com/routmoute/fxserver


Docker run sample

FiveM

docker run -it -p 30120:30120/tcp -p 30120:30120/udp \
    -v /yourLocalServerFolder/server.cfg:/opt/cfx-server/server.cfg \
    -v /yourLocalServerFolder/resources:/opt/cfx-server/resources \
    routmoute/fxserver:recommended +exec server.cfg

RedM

docker run -it -p 30120:30120/tcp -p 30120:30120/udp \
    -v /yourLocalServerFolder/server.cfg:/opt/cfx-server/server.cfg \
    -v /yourLocalServerFolder/resources:/opt/cfx-server/resources \
    routmoute/fxserver:recommended +exec server.cfg +set gamename rdr3

Docker compose sample

FiveM

services:
  fivem:
    image: routmoute/fxserver:recommended
    tty: true
    stdin_open: true
    volumes:
      - ./server.cfg:/opt/cfx-server/server.cfg
      - ./resources:/opt/cfx-server/resources
    ports:
      - "30120:30120/tcp"
      - "30120:30120/udp"
    command: +exec server.cfg

RedM

services:
  redm:
    image: routmoute/fxserver:recommended
    tty: true
    stdin_open: true
    volumes:
      - ./server.cfg:/opt/cfx-server/server.cfg
      - ./resources:/opt/cfx-server/resources
    ports:
      - "30120:30120/tcp"
      - "30120:30120/udp"
    command: +exec server.cfg +set gamename rdr3

Image based sample

FiveM

FROM routmoute/fxserver:recommended

COPY server.cfg server.cfg
COPY resources resources

CMD ["+exec", "server.cfg"]

RedM

FROM routmoute/fxserver:recommended

COPY server.cfg server.cfg
COPY resources resources

CMD ["+exec", "server.cfg", "+set", "gamename", "rdr3"]

TXAdmin

To access TXAdmin Interface, you need to add 40120:40120/tcp port.

10 Likes

GOD!, now i only need to now how to use it properly

1 Like

I forgot to copy “docker run sample”
post edited.

Why disable txAdmin?

I don’t use txAdmin, just expose port 40120, right ?
I can add it into dockerfile

and remove the +exec server.cfg

I think it work with latest, juste launch simple docker run like this:
docker run -itd -p 30120:30120/tcp -p 30120:30120/udp -p 40120:40120/tcp routmoute/fxserver

Is there an updated compose file for this as rdr3 fails to run the session manager now.

fixed

I hope someone responds to this, I can’t make my own posts apparently…

I am using a docker on UNRAID, got the server running and configured with txAdmin and it’s all working great! The issue is that I can’t add any resources :confused: Each time I add a resource and change the system.cfg I get the “Cannot find resource” error, I have tried typing out the entire file path as well. Nothing is working!

I’m about to embark on this exact endeavor. Mind sharing your docker file?

I’m using ich777’s docker through UNRAID, I’ve had the most luck using txAdmin, that’s been the best setup I’ve found using UNRAID, I’m not home now but I will try to check the cfg and share the settings N

1 Like

I know I’m necro-ing an old thread here, but I do have a question: I’m attempting to use ich777’s Docker image as well, and set up using txAdmin. However, I’m having issues with the step where I need to input the user and pass for the mariaDB when attempting to set up ESX. I think it might be something to do with the fact that mariaDB is in a seperate docker, but what is the method for properly setting this up? I’ve spent the last week googling but I haven’t been able to find good documentation, and since I’m new to server management I’m not sure how to fix this one on my own.

Thanks a lot!

My brother has his own home server up, and we just got a FiveM server going last night through Unraid but we’re not using a Docker, it is running through AMP. Can this still work?

I have a few questions. Unfortunately I am inexperienced with Docker.
But I want to learn.
How does it work with the DB?
I still have a Mac with m2 chip. Can I also run it there?

Can someone make a little tutorial for the inexperienced users :smiley:

There is a lot of docker tutorial on YouTube / Google. There is not the place here.
I have never tried, but yes, we can execute a Docker AMD64 image on an ARM64 CPU with --platform linux/amd64 argument.