Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Deploying with Docker

version: "3"
services:
  rayactf:
    image: ghcr.io/mohammedgqudah/rayactf:latest
    environment:
       RUST_LOG: 'raya_ctf=TRACE'
    volumes:
      - ./rayactf.toml:/etc/rayactf/rayactf.toml    # config
      - ./extensions:/etc/rayactf/extensions        # extensions directory
      - /var/run/docker.sock:/var/run/docker.sock   # so that you can spawn docker instances
      - /tmp/rayactf:/tmp/rayactf                   # tmp directory
    ports:
      - "3000:3000"

  rayactf_fe:
    image: ghcr.io/mohammedgqudah/rayactf-fe:latest
    environment:
      API_URL: 'http://95.179.139.160:3000'
      ORIGIN: http://95.179.139.160
      PORT: 80
    ports:
      - 80:80
      - 443:80
  db:
    image: postgres:latest
    volumes:
        - ./pg-data:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: '123456789'

  etcd:
    image: gcr.io/etcd-development/etcd:v3.5.17
    container_name: etcd
    command:
      - /usr/local/bin/etcd
      - --data-dir=/etcd-data
      - --name
      - node1
      - --initial-advertise-peer-urls
      - http://192.168.1.21:2380
      - --listen-peer-urls
      - http://0.0.0.0:2380
      - --advertise-client-urls
      - http://192.168.1.21:2379
      - --listen-client-urls
      - http://0.0.0.0:2379
      - --initial-cluster
      - node1=http://192.168.1.21:2380