Dive into the world of multiplayer with alt:V
Get started with your own server today!
How to run alt:V server in Docker?
To run a minimal game server, execute the command below. Docker Hub (altv-server)
docker run --rm -it -p 7788:7788 -p 7788:7788/udp altmp/altv-server:release
This command will run the alt:V server in a Docker container and expose the default server UDP port (7788) to the same port on your computer.
To run a minimal voice server, execute the command below. Docker Hub (altv-voice-server)
docker run --rm -it -p 7799:7799/udp altmp/altv-voice-server:release
To run the game server along with the voice server via docker compose, use this docker-compose.yml file as an example (replace your.public.ip with your public IP).
For additional information on configuring and managing the Docker image for the alt:V server, refer to the altv-docker repository.
How to download alt:V server using altv-pkg?
altv-pkg - is an executable NPM package that will help you easily download the alt:V server.
We will show you only a basic installation example, but you can find more information in the README repository altv-pkg. If you encounter any problem, you can create an issue on GitHub.
- Install NodeJS on your computer.1
- 2
Create a new directory for your server and navigate to it:
Terminalmkdir altv-server cd altv-server
- 3
If necessary, create a configuration file in the root directory of your project and specify the desired parameters. Below is an example of default configuration:
.altvpkgrc.json{ "loadJSModule": true, "loadBytecodeModule": false, "loadCSharpModule": false, "loadJSV2Module": false, "loadVoiceServer": false }
- 4
Download server files by executing the binary package with the specified branch. In this case, we will download the server from the release branch.
Terminalnpx altv-pkg release