mirror of https://github.com/JohnHammond/CTFd.git
27 lines
412 B
YAML
27 lines
412 B
YAML
ctfd:
|
|
build: .
|
|
restart: always
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DATABASE_URL=mysql+pymysql://root@db/ctfd
|
|
volumes_from:
|
|
- data:rw
|
|
links:
|
|
- db:db
|
|
|
|
db:
|
|
image: mysql
|
|
environment:
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
|
volumes_from:
|
|
- data:rw
|
|
|
|
data:
|
|
image: mysql
|
|
restart: always
|
|
volumes:
|
|
- /var/lib/mysql
|
|
- /opt/CTFd/CTFd/logs
|
|
command: "tail -f /dev/null"
|