mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
@@ -7,7 +7,7 @@ services:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DATABASE_URL=mysql+pymysql://root@db/ctfd
|
||||
- DATABASE_URL=mysql+pymysql://ctfd:ctfd@db/ctfd
|
||||
volumes:
|
||||
- .data/CTFd/logs:/opt/CTFd/CTFd/logs
|
||||
- .data/CTFd/uploads:/opt/CTFd/CTFd/uploads
|
||||
@@ -15,8 +15,11 @@ services:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql
|
||||
image: mariadb
|
||||
environment:
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||
- MYSQL_ROOT_PASSWORD=ctfd
|
||||
- MYSQL_USER=ctfd
|
||||
- MYSQL_PASSWORD=ctfd
|
||||
- MYSQL_DATABASE=ctfd
|
||||
volumes:
|
||||
- .data/mysql:/var/lib/mysql
|
||||
|
||||
@@ -12,4 +12,4 @@ echo "Ready"
|
||||
sleep 1;
|
||||
|
||||
echo "Starting CTFd"
|
||||
gunicorn --bind 0.0.0.0:8000 -w 4 'CTFd:create_app()' --access-logfile '/opt/CTFd/CTFd/logs/access.log' --error-logfile '/opt/CTFd/CTFd/logs/error.log'
|
||||
gunicorn --bind 0.0.0.0:8000 -w 1 --threads 8 'CTFd:create_app()' --access-logfile '/opt/CTFd/CTFd/logs/access.log' --error-logfile '/opt/CTFd/CTFd/logs/error.log'
|
||||
|
||||
Reference in New Issue
Block a user