mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00

Renamed main container to web. Added the STEAMAPIKEY environment variable placeholder, as this is necessary when searching for mods. Refactor locations of scripts and paths. Rename start scripts to be more consistent with their new locations. Run the web server under nodemon to prevent manual restarting.
15 lines
362 B
Bash
Executable file
15 lines
362 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Set PS1 so we know we're in the container
|
|
cat > .bashrc <<EOF
|
|
alias ls='ls --color'
|
|
export PS1="${debian_chroot:+($debian_chroot)}\u@dz-server:\w\$ "
|
|
EOF
|
|
|
|
# Uncomment the line below to run things manually in the container, then run:
|
|
# docker compose exec main bash
|
|
tail -f /dev/null
|
|
exit 0
|
|
|
|
# Otherwise, start the server normally
|
|
dz start
|