docker-compose.yml 732 Bytes
Newer Older
1 2 3 4
version: '2'
services:
  web:
    build: .
mdsecurity's avatar
mdsecurity committed
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:
mdsecurity's avatar
mdsecurity committed
14
      - debug=True
15
      - host=*
mdsecurity's avatar
mdsecurity committed
16
      - email_domain=@masonlive.gmu.edu
Eyad Hasan's avatar
Eyad Hasan committed
17
      - cas_url=https://cas.srct.gmu.edu/
mdsecurity's avatar
mdsecurity committed
18 19 20 21 22 23 24 25 26 27
      - superuser=dhaynes3
      - DB_NAME=go
      - DB_USER=go
      - DB_PASSWORD=go
      - DB_HOST=db
      - PIWIK_URL=
      - EMAIL_HOST=
      - EMAIL_PORT=
      - EMAIL_HOST_USER=
      - EMAIL_HOST_PASSWORD=
28 29 30 31 32 33 34
  db:
    image: mysql
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
      MYSQL_DATABASE: go
      MYSQL_USER: go
      MYSQL_PASSWORD: go