mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 10:51:10 +01:00
Use secrets for database service
This commit is contained in:
parent
bcf6214c3d
commit
f228e0554b
|
@ -25,6 +25,10 @@ x-wordpress-configuration-env: &wordpress-configuration-env
|
|||
networks:
|
||||
default:
|
||||
|
||||
secrets:
|
||||
database_root_password:
|
||||
file: ./.secrets/database_root_password.txt
|
||||
|
||||
services:
|
||||
wordpress:
|
||||
image: ghcr.io/n0rthernl1ghts/wordpress:6.5.3
|
||||
|
@ -106,10 +110,12 @@ services:
|
|||
MARIADB_INIT_DATABASES: wordpress
|
||||
MARIADB_INIT_USERS: wordpress
|
||||
MARIADB_PASSWORD: wordpress # CHANGE THIS!
|
||||
MARIADB_ROOT_PASSWORD: 'super-secure-root-password123' # CHANGE THIS!
|
||||
FILE__MARIADB_ROOT_PASSWORD: /run/secrets/database_root_password
|
||||
FORCE_CONFIG_OVERWRITE: 1
|
||||
volumes:
|
||||
- ./data/database/config:/config
|
||||
- ./data/database/data:/var/lib/mysql
|
||||
secrets:
|
||||
- database_root_password
|
||||
networks:
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user