Skip to content

Commit

Permalink
Fixed perm-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
z3orc committed Apr 10, 2021
1 parent 93447f9 commit ce4d7a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ WORKDIR /home/steam/valheim

COPY entrypoint.sh /home/steam/valheim

RUN chmod +x entrypoint.sh

EXPOSE 2456-2458/udp
ENV NAME="My server"
ENV PASSWORD="secret"
ENV WORLD="Dedicated"
ENV PORT=2456
ENV PUBLIC=1

ENTRYPOINT ["/bin/bash", "-c" , "exec ./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]

VOLUME [ "/home/steam/valheim", "/home/steam/.config/unity3d/IronGate/Valheim" ]
26 changes: 13 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ services:
restart: on-failure
init: true

backup:
depends_on:
- gameserver
image: z3orc/gameserver-backup:latest
# build:
# context: ./backup
# dockerfile: Dockerfile
environment:
WORLD: "Dedicated"
volumes:
- valheim_save:/home/steam/valheimbackup/mnt
- valheim_backup:/home/steam/valheimbackup/dest
restart: on-failure
# backup:
# depends_on:
# - gameserver
# image: z3orc/gameserver-backup:latest
# # build:
# # context: ./backup
# # dockerfile: Dockerfile
# environment:
# WORLD: "Dedicated"
# volumes:
# - valheim_save:/home/steam/valheimbackup/mnt
# - valheim_backup:/home/steam/valheimbackup/dest
# restart: on-failure

volumes:
valheim_data:
Expand Down

0 comments on commit ce4d7a3

Please sign in to comment.