File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ services:
2626 CFG_DB_PASSWORD_FILE : /run/secrets/db_password
2727 CFG_DB_PORT : 3306
2828 CFG_DB_USERNAME : programowaniecraft
29- CFG_DISCORD_TOKEN_FILE : /run/secrests /discord_token
29+ CFG_DISCORD_TOKEN_FILE : /run/secrets /discord_token
3030 DIFFICULTY : normal
3131 ENABLE_RCON : false
3232 EULA : true
@@ -37,10 +37,14 @@ services:
3737 OVERRIDE_ICON : true
3838 OVERRIDE_SERVER_PROPERTIES : true
3939 REPLACE_ENV_DURING_SYNC : true
40+ REPLACE_ENV_VARIABLES : true
4041 SERVER_NAME : ProgramowanieCraft
4142 TYPE : PAPER
4243 VERSION : 1.20.4
4344 stdin_open : true
45+ secrets :
46+ - db_password
47+ - discord_token
4448 restart : unless-stopped
4549 tty : true
4650 volumes :
@@ -50,10 +54,12 @@ services:
5054 image : mariadb:lts
5155 environment :
5256 MARIADB_DATABASE : minecraft
53- MARIADB_ROOT_PASSWORD_FILE : /run/secrets/db_passwordium
57+ MARIADB_ROOT_PASSWORD_FILE : /run/secrets/db_password
5458 MARIADB_USER : programowaniecraft
5559 MARIADB_PASSWORD_FILE : /run/secrets/db_password
5660 restart : always
61+ secrets :
62+ - db_password
5763 volumes :
5864 - ./mariadb.conf.d:/etc/mysql/conf.d:ro
5965 - databasedata:/var/lib/mysql
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ use-server-uuid-cache: false
8080#
8181# - A H2 database is the default option.
8282# - If you want to edit data manually in "traditional" storage files, we suggest using YAML.
83- storage-method : h2
83+ storage-method : MariaDB
8484
8585# The following block defines the settings for remote database storage methods.
8686#
9191 # - The standard DB engine port is used by default
9292 # (MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017)
9393 # - Specify as "host:port" if differs
94- address : ${CFG_DB_HOSTNAME }
94+ address : ${CFG_DB_HOST }
9595
9696 # The name of the database to store LuckPerms data in.
9797 # - This must be created already. Don't worry about this setting if you're using MongoDB.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ messages:
5555# [!] If you're not using ssl, change sslMode=trust to sslMode=disable [!]
5656database :
5757 enabled : true
58- host : ${CFG_DB_HOSTNAME }
58+ host : ${CFG_DB_HOST }
5959 port : ${CFG_DB_PORT}
6060 database : ${CFG_DB_DATABASE}
6161 username : ${CFG_DB_USERNAME}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ deftemplatesuffix: vlowres
2727# postgres: PostgreSQL database, at hostname:port in database, accessed via userid with password
2828storage:
2929 # Filetree storage (standard tree of image files for maps)
30- type: filetree
30+ # type: filetree
3131 # SQLite db for map storage (uses dbfile as storage location)
3232 #type: sqlite
3333 #dbfile: dynmap.db
@@ -38,7 +38,7 @@ storage:
3838 database: ${CFG_DB_DATABASE}
3939 userid: ${CFG_DB_USERNAME}
4040 password: ${CFG_DB_PASSWORD}
41- prefix: "dm_ "
41+ prefix: "dynmap_ "
4242 flags: "?allowReconnect=true&autoReconnect=true"
4343 #
4444 # AWS S3 backet web site
You can’t perform that action at this time.
0 commit comments