Moved all config to .env file; updated README

This commit is contained in:
Jef Roosens 2020-12-30 15:57:45 +01:00
parent 3e0e544ec7
commit 0ae84c0019
10 changed files with 79 additions and 19 deletions

View file

@ -1,2 +1,13 @@
# Build arguments
RELEASE_TAG=
# Environment variables
AUTOCREATE=2
# Mountpoints
CONFIG_DIR=
LOGS_DIR=
WORLDS_DIR=
# Other
PORT=7777

View file

@ -14,8 +14,8 @@ services:
environment:
- AUTOCREATE
ports:
- '7777:7777'
- '$PORT:7777'
volumes:
- '/data/tshock/config:/terraria/config'
- '/data/tshock/logs:/terraria/logs'
- '/data/tshock/worlds:/terraria/worlds'
- '$CONFIG_DIR:/terraria/config'
- '$LOGS_DIR:/terraria/logs'
- '$WORLDS_DIR:/terraria/worlds'