FXServer for FiveM or RedM server
it's recommended to use recommended
tag to use recommended FXServer version.
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
version: "3.8"
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
FROM routmoute/fxserver:recommended
COPY server.cfg server.cfg
COPY resources resources
CMD ["+exec", "server.cfg", "+set", "gamename", "rdr3"]