/fivem-service

FiveM containerization and system deployment example.

Primary LanguageJavaScript

FiveM Game Microservice Architecture

This is a FiveM game microservice architecture I'm working on. I made it open source to help others discover container deployment best practices as these pipelines are built.

Publish to package vulnerability scan

Built for production with txAdmin dashboard configuration.

Features
  • Fixes security vulnerabilities in linux artifact.

  • Orchestration with database service.

Local

git clone https://github.com/purple-world/fivem-service.git
cd fivem-service
docker build -t purpleworld/game .
docker-compose up -d
# Follow the output of the game service (FiveM console output)
docker-compose logs -f game
Complete txAdmin's initial startup via the dashboard

http://localhost:40120

K8s

Kubernetes manifests are available. A proper tutorial needs revision.

ssh-keygen -t ed25519

When prompted to enter a filename, enter the following to stage the key for entry into your FiveM pod.

./Docker/.ssh/id_ed25519

# kubectl cp Docker/.ssh fivem/fivem-stateful-0:home/

# kubectl -n fivem exec -it fivem-stateful-0 -- chown -R root:root home/.ssh

# kubectl --kubeconfig=scratch-01-kubeconfig.yml -n fivem exec -it fivem-stateful-0 -- chmod 700 home/.ssh

# kubectl exec -it fivem-stateful-0 -- chmod 600 home/.ssh/id_ed25519

# kubectl exec -it fivem-stateful-0 -- chmod 644 home/.ssh/id_ed25519.pub

# kubectl exec -it fivem-stateful-0 -- chmod 600 home/.ssh/config

kubectl exec -it fivem-stateful-0 -- git clone -b main https://domain.tld/FiveM/server-data.git txData/