Sign inSign up

traskin/fxserver

By traskin

•Updated 2 days ago

FXServer for FiveM and RedM with Docker

Image
Languages & frameworks
Developer tools
Web servers
5

10K+

traskin/fxserver repository overview

⁠FXServer for FiveM and RedM with Docker

⁠Tags

⁠Usage

⁠With shell command
docker run -d --name fxserver -p 30120:30120/tcp -p 30120:30120/udp -p 40120:40120 traskin/fxserver:latest
⁠With Docker Compose
# docker-compose.yml
services:

  fxserver:
    image: traskin/fxserver:latest
    ports:
      - 30120:30120/tcp
      - 30120:30120/udp
      - 40120:40120
⁠Access to txAdmin

txAdmin is available at: http://localhost:40120/⁠

⁠Retrieve authentication code

If started with the shell command

docker logs fxserver

If started with Docker Compose

docker compose logs fxserver

⁠Advanced usage

⁠Keep txAdmin data

Bind the volume /txData from the container in your host system.

⁠FXServer with a database

Assuming that we are in the root folder of our project.

# docker-compose.yml
services:

  fxserver:
    image: traskin/fxserver:latest
    ports:
      - 30120:30120/tcp
      - 30120:30120/udp
      - 40120:40120
    volumes:
      - ./txData:/txData
    links:
      - fxserver_db
    depends_on:
      - fxserver_db

  fxserver_db:
    image: mysql:latest
    ports:
      - 3306:3306
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
      MYSQL_DATABASE: mydatabase
    volumes:
      - database:/var/lib/mysql

volumes:
  database:

In our case, you can access your database from the fxserver container via the url: mysql://root@fxserver_db/mydatabase

Tag summary

Content type

Image

Digest

sha256:45b674a35…

Size

100.3 MB

Last updated

2 days ago

docker pull traskin/fxserver