docker-compose.yml 608 Bytes
Newer Older
1
2
version: '2'
services:
David Haynes's avatar
David Haynes committed
3
  wopen_web:
4
5
6
7
    build: .
    restart: always
    ports:
      - '8000:8000'
David Haynes's avatar
David Haynes committed
8
    command: /bin/bash ./startup.sh
9
10
    volumes:
      - .:/whats_open
David Haynes's avatar
David Haynes committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    depends_on:
      - wopen_db
    environment:
      - WOPEN_EMAIL_DOMAIN=@masonlive.gmu.edu
      - WOPEN_DB_NAME=wopen
      - WOPEN_DB_USER=wopen
      - WOPEN_DB_PASSWORD=wopen
      - WOPEN_DB_HOST=wopen_db
      - WOPEN_DB_PORT=3306
      - WOPEN_SUPERUSER=admin
  wopen_db:
    image: mysql
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
      MYSQL_DATABASE: wopen
      MYSQL_USER: wopen
      MYSQL_PASSWORD: wopen