CTFd/docker-compose.yml

22 lines
373 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
links:
- db:db
db:
image: mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- .data/mysql:/var/lib/mysql