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:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
database_root_password:
|
||||||
|
file: ./.secrets/database_root_password.txt
|
||||||
|
|
||||||
services:
|
services:
|
||||||
wordpress:
|
wordpress:
|
||||||
image: ghcr.io/n0rthernl1ghts/wordpress:6.5.3
|
image: ghcr.io/n0rthernl1ghts/wordpress:6.5.3
|
||||||
|
@ -106,10 +110,12 @@ services:
|
||||||
MARIADB_INIT_DATABASES: wordpress
|
MARIADB_INIT_DATABASES: wordpress
|
||||||
MARIADB_INIT_USERS: wordpress
|
MARIADB_INIT_USERS: wordpress
|
||||||
MARIADB_PASSWORD: wordpress # CHANGE THIS!
|
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
|
FORCE_CONFIG_OVERWRITE: 1
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/database/config:/config
|
- ./data/database/config:/config
|
||||||
- ./data/database/data:/var/lib/mysql
|
- ./data/database/data:/var/lib/mysql
|
||||||
|
secrets:
|
||||||
|
- database_root_password
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user