2017-01-06 22:04:57 +00:00
|
|
|
version: '2'
|
2016-01-09 00:42:23 +00:00
|
|
|
|
2017-01-06 22:04:57 +00:00
|
|
|
services:
|
|
|
|
ctfd:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=mysql+pymysql://root@db/ctfd
|
|
|
|
volumes:
|
|
|
|
- .data/CTFd/logs:/opt/CTFd/CTFd/logs
|
2017-03-10 06:17:17 +00:00
|
|
|
- .data/CTFd/uploads:/opt/CTFd/CTFd/uploads
|
2017-04-08 21:35:18 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2017-01-06 22:04:57 +00:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
|
|
|
volumes:
|
|
|
|
- .data/mysql:/var/lib/mysql
|