CTFd/docker-compose.yml

23 lines
425 B
YAML

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