mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Make ctfd user usable for mysql connection (#1028)
* Make unprivileged `ctfd` user usable for mysql connection in docker-compose by having the db image create the database instead of CTFd
This commit is contained in:
committed by
Kevin Chung
parent
b5632f9289
commit
420e4f4dc7
@@ -32,6 +32,7 @@ services:
|
|||||||
- MYSQL_ROOT_PASSWORD=ctfd
|
- MYSQL_ROOT_PASSWORD=ctfd
|
||||||
- MYSQL_USER=ctfd
|
- MYSQL_USER=ctfd
|
||||||
- MYSQL_PASSWORD=ctfd
|
- MYSQL_PASSWORD=ctfd
|
||||||
|
- MYSQL_DATABASE=ctfd
|
||||||
volumes:
|
volumes:
|
||||||
- .data/mysql:/var/lib/mysql
|
- .data/mysql:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user