I’m trying to run the official docker image of FxServer.
Build: 1881
Image used: citizenfx/server:dev | https://hub.docker.com/r/citizenfx/server/tags
Docker-compose configuration file:
server_test:
image: hellslicer/fxserver:dev
tty: true
restart: always
stdin_open: true
volumes:
- ./stacks/server/src/resources:/opt/cfx-server/resources:ro
- ./stacks/server/src/server.cfg:/opt/cfx-server/server.cfg:ro
- ./stacks/server/src/libsvadhesive.json:/opt/cfx-server/libsvadhesive.json
- ./stacks/server/src/libsvadhesive.so:/opt/cfx-server/libsvadhesive.so
- ./stacks/server/src/citizen:/opt/cfx-server/citizen
ports:
- "30120:30120"
- "30120:30120/udp"
environment:
- SERVER_ARGS="+set citizen_dir /opt/cfx-server/citizen/ +exec server.cfg +set gamename rdr3"
I’ll explain later why I added citizen
.
Tree:
Log output
Creating script environments for _cfx_internal
Found new resource basic-gamemode in /opt/cfx-server/resources//[gamemodes]/basic-gamemode
Resource loading for basic-gamemode failed:
Could not open resource metadata file citizen:/scripting/lua/json.lua.
Found new resource chat in /opt/cfx-server/resources//[gameplay]/chat
Resource loading for chat failed:
Could not open resource metadata file citizen:/scripting/lua/json.lua.
// ETC...
I’ve entered in the image (with sh
), and I noticed the image didn’t have a citizen/scripting/lua/json.lua
file. So I mounted /citizen
from the lastest build (1881) to /opt/cfx-server/citizen
.
But for some reason it didn’t works neither. (It does have r/w permission). Even if the file is here
In fact, I did try with +set gamename rdr3
, maybe Fxv2 cannot run in a container for now?
Thanks for your help.
Izio.