A containerized FiveM server based on Alpine Linux with automatic configuration and OneSync support.
- Base OS: Alpine Linux (minimal, secure)
- FiveM Server: Latest build with OneSync enabled by default
- Init system:
tinifor proper PID 1 behavior - Auto-config: Default server configuration generated on first run
- Web UI: txAdmin support for server management
# Clone or download docker-compose.yml
docker-compose up -ddocker pull ghcr.io/skriptzip/fivem:latestdocker run -d \
--name fivem-server \
--restart unless-stopped \
-e LICENSE_KEY=your_license_key_here \
-p 30120:30120/tcp \
-p 30120:30120/udp \
-p 30121:30121/tcp \
-p 30121:30121/udp \
-v ./config:/config \
-ti \
ghcr.io/skriptzip/fivem:latestdocker run -d \
--name fivem-server \
--restart unless-stopped \
-e LICENSE_KEY=your_license_key_here \
-e NO_DEFAULT_CONFIG=1 \
-p 30120:30120/tcp \
-p 30120:30120/udp \
-p 40120:40120 \
-v ./config:/config \
-v ./txData:/txData \
-ti \
ghcr.io/skriptzip/fivem:latestNote: Interactive and pseudo-tty options (-ti) are required to prevent container crashes on startup
You can connect to the FiveM server's WebSocket endpoint using wscat:
wscat -c ws://localhost:30121This is useful for monitoring and interacting with the server in real-time.
| Argument | Default | Description |
|---|---|---|
FIVEM_NUM |
18443 |
FiveM build number |
FIVEM_VER |
18443-746f079d418d6a05ae5fe78268bc1b4fd66ce738 |
Full FiveM version string |
DATA_VER |
0e7ba538339f7c1c26d0e689aa750a336576cf02 |
CFX server data version |
Example:
docker build --build-arg FIVEM_NUM=18500 -t my-fivem .| Variable | Required | Default | Description |
|---|---|---|---|
LICENSE_KEY |
Yes* | - | FiveM license key from keymaster.fivem.net |
RCON_PASSWORD |
No | Random 16-char | RCON password for server management |
NO_DEFAULT_CONFIG |
No | - | Set to disable default config (enables txAdmin) |
NO_LICENSE_KEY |
No | - | Set to disable license key requirement |
NO_ONESYNC |
No | - | Set to disable OneSync |
DEBUG |
No | - | Enable debug logging |
*Required unless NO_LICENSE_KEY is set
| Container Path | Purpose | Description |
|---|---|---|
/config |
Server Config | Server configuration files and resources |
/txData |
txAdmin Data | txAdmin web UI configuration and database |
-
Obtain a License Key: Visit keymaster.fivem.net to get your free license key
-
Create directories:
mkdir -p config txData
-
Run with Docker Compose:
# Edit docker-compose.yml with your license key docker-compose up -d -
Configure Server: Edit
config/server.cfgafter first run to customize your server -
Connect: Join your server at
your-server-ip:30120
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request