FXServer for FiveM and RedM with Docker
10K+
latest, recommended, optionaldocker run -d --name fxserver -p 30120:30120/tcp -p 30120:30120/udp -p 40120:40120 traskin/fxserver:latest
# docker-compose.yml
services:
fxserver:
image: traskin/fxserver:latest
ports:
- 30120:30120/tcp
- 30120:30120/udp
- 40120:40120
txAdmin is available at: http://localhost:40120/
If started with the shell command
docker logs fxserver
If started with Docker Compose
docker compose logs fxserver
Bind the volume /txData from the container in your host system.
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
Content type
Image
Digest
sha256:62695b3ec…
Size
100.3 MB
Last updated
about 6 hours ago
docker pull traskin/fxserver