configuration Docker & Self-Hosted Deployment

GitHub

A simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go

17 stars Python Python 1 file ยท ~62,448 tokens
RAW Compose
1. Pull Image (DOCKERHUB) docker pull microsoft/configuration
2. Docker Run (1-Click Launch) docker run -d --name configuration --restart always microsoft/configuration:latest
3. Podman Run podman run -d --name configuration --restart always microsoft/configuration:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/microsoft/configuration:latest
5. ORAS Pull (OCI Artifact) oras pull microsoft/configuration:latest
6. Compose Deployment docker compose up -d
docker/compose/edx/docker-compose.yml
Download .yml
#
# Single Docker Compose cluster that will eventually start
# all edX services in a single flock of coordinated containers
#
# This work is currently experimental and a number of services
# are missing entirely.  Containers that are present will not
# currently work without manual steps.  We are working on
# addressing that.
#
# When running compose you must pass in two environment variables
#
# DOCKER_EDX_ROOT which points to the directory into which you checkout
# your edX source code.  For example, assuming the following directory
# structure under /home/me
#
# |-- edx-src
# |   |-- discovery
# |   |-- cs_comments_service
# |   |-- edx_discovery
# |   |-- edx-platform
# |   |-- xqueue

# you would define DOCKER_EDX_ROOT="/home/me/edx-src"
#
# DOCKER_DATA_ROOT is the location on your host machine where Docker
# guests can access your local filesystem for storing persistent data
# files, say MongoDB or MySQL data files.
#

db:
  container_name: db
  image: mysql:5.6
  environment:
    - MYSQL_ROOT_PASSWORD='password'
    #- MYSQL_DATABASE=''
    - MYSQL_USER='migrate'
    - MYSQL_PASSWORD='password'
  volumes:
    - ${DOCKER_DATA_ROOT}/mysql/data:/data
  ports:
    - 3306:3306


mongo:
  container_name: mongo
  image: mongo:3.0
  volumes:
    - ${DOCKER_DATA_ROOT}/mongo/data:/data
  ports:
    - 27017:27017


# Need to build our own for ES 0.9
es:
  container_name: es
  image: edxops/elasticsearch:v1
  volumes:
    - ${DOCKER_DATA_ROOT}/elasticsearch/data:/data
  ports:
    - 9100:9100
    - 9200:9200
    - 9300:9300


memcache:
  container_name: memcache
  image: memcached:1.4.24
  volumes:
    - ${DOCKER_DATA_ROOT}/memcache/data:/data
  ports:
    - 11211:11211


nginx:
  container_name: nginx
  image: edxops/nginx:v1
  ports:
   - 80:80
   - 443:443


rabbitmq:
  container_name: rabbitmq
  image: rabbitmq:3.5.3
  volumes:
    - ${DOCKER_DATA_ROOT}/rabbitmq/data:/data
  ports:
    - 5672:5672


forum:
  container_name: forum
  # Image built from the opencraft fork as it fixes
  # an auth bug.  Update when the change merges
  # upstream
  image: edxops/forum:opencraft-v2
  volumes:
    - ${DOCKER_EDX_ROOT}/cs_comments_service:/edx/app/forum/cs_comments_service
  ports:
    - 4567:4567


xqueue:
  container_name: xqueue
  image: edxops/xqueue:v1
  ports:
    - 8040:8040
    - 18040:18040
  volumes:
    - ${DOCKER_EDX_ROOT}/xqueue:/edx/app/edxapp/xqueue


lms:
  container_name: lms
  image: edxops/edxapp:v2
  ports:
    - 8000:8000
    - 18000:18000
  volumes:
    - ${DOCKER_EDX_ROOT}/edx-platform:/edx/app/edxapp/edx-platform


cms:
  container_name: cms
  image: edxops/edxapp:v2
  ports:
    - 8010:8010
    - 18010:18010
  volumes:
    - ${DOCKER_EDX_ROOT}/edx-platform:/edx/app/edxapp/edx-platform