fixing compose port and config string for db
This commit is contained in:
@@ -18,7 +18,7 @@ services:
|
||||
- ./scripts:/opt/server/scripts
|
||||
- ./wz:/opt/server/wz
|
||||
environment:
|
||||
DB_HOST: "db"
|
||||
DB_HOST: "db" ## Remember if this is present it will OVERRIDE the host in the config.yaml, this one is optional.
|
||||
|
||||
db:
|
||||
image: mysql:8.0.23
|
||||
@@ -27,6 +27,11 @@ services:
|
||||
MYSQL_DATABASE: "cosmic"
|
||||
MYSQL_USER: "cosmic_server"
|
||||
MYSQL_PASSWORD: "snailshell"
|
||||
cap_add:
|
||||
- SYS_NICE
|
||||
ports:
|
||||
- "3307:3307"
|
||||
volumes:
|
||||
- ./database/docker-db-data:/var/lib/mysql
|
||||
- ./database/sql:/docker-entrypoint-initdb.d
|
||||
- ./mysql.cnf:/etc/mysql/conf.d/mysql.cnf ## conf file for mysql internal container, relevant only if mysql host is not 'db' as mentioned above
|
||||
|
||||
Reference in New Issue
Block a user