CTFd/docker-compose.yml

25 lines
483 B
YAML

version: '2'
services:
ctfd:
build: .
restart: always
ports:
- "8000:8000"
environment:
- DATABASE_URL=mysql+pymysql://root:ctfd@db/ctfd
volumes:
- .data/CTFd/logs:/opt/CTFd/CTFd/logs
- .data/CTFd/uploads:/opt/CTFd/CTFd/uploads
depends_on:
- db
db:
image: mariadb:10.2
environment:
- MYSQL_ROOT_PASSWORD=ctfd
- MYSQL_USER=ctfd
- MYSQL_PASSWORD=ctfd
volumes:
- .data/mysql:/var/lib/mysql