docker-compose.yml 805 Bytes
Newer Older
1 2 3 4
version: '2'
services:
  web:
    build: .
5
    restart: always
6
    ports:
7
      - '8000:8000'
mdsecurity's avatar
mdsecurity committed
8
    command: /bin/bash ./startup.sh -python go/manage.py runserver 0.0.0.0:8000
9 10 11 12
    volumes:
      - .:/go
    depends_on:
      - db
mdsecurity's avatar
mdsecurity committed
13
    environment:
14 15 16 17 18 19 20 21 22 23 24 25 26 27
      - GO_ALLOWED_HOSTS=*
      - GO_EMAIL_DOMAIN=@masonlive.gmu.edu
      - GO_CAS_URL=https://cas.srct.gmu.edu/
      - GO_DB_NAME=go
      - GO_DB_USER=go
      - GO_DB_PASSWORD=go
      - GO_DB_HOST=db
      - GO_DB_PORT=3306
      - GO_EMAIL_HOST=
      - GO_EMAIL_PORT=
      - GO_EMAIL_HOST_USER=
      - GO_EMAIL_HOST_PASSWORD=
      - GO_EMAIL_FROM=
      - GO_EMAIL_TO=
mdsecurity's avatar
mdsecurity committed
28
      - superuser=dhaynes3
29

30 31 32 33 34 35 36
  db:
    image: mysql
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
      MYSQL_DATABASE: go
      MYSQL_USER: go
      MYSQL_PASSWORD: go