Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b6c405704c | |||
| a8ed7e1432 | |||
| b8230c0c4a | |||
| 8969c9aa32 | |||
| 24bc1c6f03 | |||
| 12063e2a8e | |||
| 061b1a8a1f | |||
| 50555b8844 | |||
| d1ec15eb46 | |||
| a958bb7e0e |
+1
-1
@@ -17,7 +17,7 @@ RUN set -x \
|
|||||||
p7zip-full \
|
p7zip-full \
|
||||||
&& cd ${TMPDIR} \
|
&& cd ${TMPDIR} \
|
||||||
&& 7z x Archipelago.tar.gz \
|
&& 7z x Archipelago.tar.gz \
|
||||||
&& 7z x *.tar \
|
&& 7z x *.tar || true \
|
||||||
&& mkdir ${SERVERDIR} \
|
&& mkdir ${SERVERDIR} \
|
||||||
&& mkdir ${SAVEDIR} \
|
&& mkdir ${SAVEDIR} \
|
||||||
&& mv Archipelago/ArchipelagoServer ${SERVERDIR} \
|
&& mv Archipelago/ArchipelagoServer ${SERVERDIR} \
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
A Dockerfile to use the Archipelago through Docker.<br>
|
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.
|
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:
|
### Volumes:
|
||||||
- `/home/archipelago/saves` -> Directory to put the save files into
|
- `/home/archipelago/saves` -> Directory to put the save files into
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -1,7 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
build: ./
|
build: ./
|
||||||
|
ports:
|
||||||
|
- 38281:38281
|
||||||
volumes:
|
volumes:
|
||||||
/srv/archipelago/saves:/home/archipelago/saves
|
- /srv/archipelago/saves:/home/archipelago/saves
|
||||||
environment:
|
env_file: .env
|
||||||
SERVERPASSWORD=c2bdef1904cc
|
|
||||||
|
|||||||
+8
-1
@@ -15,7 +15,14 @@ fi
|
|||||||
|
|
||||||
echo "Using savefile ${savefile}"
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo "Started Archipelago Server"
|
echo "Started Archipelago Server"
|
||||||
|
|||||||
Reference in New Issue
Block a user