Sign inSign up

joshbeck2024/ctfd-icsi-shadow

By joshbeck2024

•Updated 12 days ago

Image
0

30

joshbeck2024/ctfd-icsi-shadow repository overview

docker-compose.yml Web Interface Username/Password: admin/admin

version: '3.7'

# ---------------------------------------------------------------------------
# CTFd stack — final version
#
# ctfd:  a `docker commit` of the app container (see commit.md).
# db:    built from ./ctfd-db-image/Dockerfile, which bakes a mysqldump of
#        the challenge database into /docker-entrypoint-initdb.d/. Plain
#        `docker commit` does NOT work for the db, because /var/lib/mysql
#        is a bind-mounted volume below and docker commit never captures
#        data that lives in a mount. See commit.md and
#        ctfd-db-image/Dockerfile for the full explanation.
# ---------------------------------------------------------------------------

services:
  ctfd:
    image: joshbeck2024/ctfd-icsi-shadow
    restart: always
    ports:
      - "8000:8000"
    environment:
      - UPLOAD_PROVIDER=filesystem
      - DATABASE_URL=mysql+pymysql://ctfd:ctfd@db/ctfd
      - REDIS_URL=redis://cache:6379
      - WORKERS=1
      - LOG_FOLDER=/var/log/CTFd
      - ACCESS_LOG=-
      - ERROR_LOG=-
      - REVERSE_PROXY=false
    volumes:
      - ./.data/CTFd/logs:/var/log/CTFd
      - ./.data/CTFd/uploads:/var/uploads
      - ./.data/CTFd/.data:/opt/CTFd/.data
    depends_on:
      - db
      - cache

  db:
    image: joshbeck2024/ctfd-icsi-shadow-db
    restart: always
    environment:
      - MARIADB_ROOT_PASSWORD=ctfd_root_pw
      - MARIADB_USER=ctfd
      - MARIADB_PASSWORD=ctfd
      - MARIADB_DATABASE=ctfd
    volumes:
      - ./.data/mysql:/var/lib/mysql
    command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0]

  cache:
    image: redis:7
    restart: always
    volumes:
      - ./.data/redis:/data

Tag summary

Content type

Image

Digest

sha256:0a17b495c…

Size

170.8 MB

Last updated

12 days ago

docker pull joshbeck2024/ctfd-icsi-shadow