Compare commits

...

10 Commits

Author SHA1 Message Date
Cleo b6c405704c add .env file 2026-06-11 22:31:15 +02:00
Cleo a8ed7e1432 remove env var for server password 2026-06-11 22:18:40 +02:00
Cleo b8230c0c4a change env var name to match server argument 2026-06-11 22:18:26 +02:00
Cleo 8969c9aa32 allow setting host and password parameters with env vars 2026-06-11 22:17:09 +02:00
Cleo 24bc1c6f03 remove config file mount 2026-06-11 22:16:26 +02:00
Cleo 12063e2a8e change server volume to mount the host.yaml config instead 2026-06-11 21:59:16 +02:00
Cleo 061b1a8a1f add server volume 2026-06-11 21:49:35 +02:00
Cleo 50555b8844 fix failing build when the archive has errors 2026-06-09 20:45:48 +02:00
Cleo d1ec15eb46 add port to compose and readme 2026-06-09 19:15:20 +02:00
Cleo a958bb7e0e fix volume and env var definition 2026-06-08 18:30:19 +02:00
4 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ RUN set -x \
p7zip-full \
&& cd ${TMPDIR} \
&& 7z x Archipelago.tar.gz \
&& 7z x *.tar \
&& 7z x *.tar || true \
&& mkdir ${SERVERDIR} \
&& mkdir ${SAVEDIR} \
&& mv Archipelago/ArchipelagoServer ${SERVERDIR} \
+3
View File
@@ -1,6 +1,9 @@
A Dockerfile to use the Archipelago through Docker.<br>
Note: The save file needs to be created somewhere else and then put into the mounted volume before starting the server.
### Port
- The server port is set to `38281` and needs to be exposed for the server to be reachable
### Volumes:
- `/home/archipelago/saves` -> Directory to put the save files into
+4 -3
View File
@@ -1,7 +1,8 @@
services:
server:
build: ./
ports:
- 38281:38281
volumes:
/srv/archipelago/saves:/home/archipelago/saves
environment:
SERVERPASSWORD=c2bdef1904cc
- /srv/archipelago/saves:/home/archipelago/saves
env_file: .env
+8 -1
View File
@@ -15,7 +15,14 @@ fi
echo "Using savefile ${savefile}"
./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}
cmd="./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}"
if [[ -n "$HOST" ]]; then
cmd="${cmd} --host ${HOST}"
fi
if [[ -n "$PASSWORD" ]]; then
cmd="${cmd} --password ${PASSWORD}"
fi
$cmd
if [[ $? -eq 0 ]]; then
echo "Started Archipelago Server"