/fxserver

FXServer Docker container for FiveM or RedM server

Primary LanguageDockerfileMIT LicenseMIT

fxserver

FXServer for FiveM or RedM server

Tags

it's recommended to use recommended tag to use recommended FXServer version.

Examples

Docker run

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

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

Image based

FROM routmoute/fxserver:recommended

COPY server.cfg server.cfg
COPY resources resources

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