docker-compose.yml 683 Bytes
Newer Older
1
version: "3"
2

3
services:
David Haynes's avatar
David Haynes committed
4
  db:
5
    image: mysql:5.7
6
    command: mysqld --character-set-server=utf8mb4
7
      --collation-server=utf8mb4_unicode_ci
David Haynes's avatar
David Haynes committed
8 9 10
    ports:
      - "3306:3306"
    environment:
11
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
David Haynes's avatar
David Haynes committed
12 13 14 15 16
      MYSQL_DATABASE: wopen
      MYSQL_USER: wopen
      MYSQL_PASSWORD: wopen

  api:
17
    build: .
18 19
    ports:
      - "8000:8000"
20
    command: ./docker-startup.sh
David Haynes's avatar
David Haynes committed
21
    depends_on:
David Haynes's avatar
David Haynes committed
22
      - db
David Haynes's avatar
David Haynes committed
23 24 25 26 27
    environment:
      - WOPEN_EMAIL_DOMAIN=@masonlive.gmu.edu
      - WOPEN_DB_NAME=wopen
      - WOPEN_DB_USER=wopen
      - WOPEN_DB_PASSWORD=wopen
David Haynes's avatar
David Haynes committed
28
      - WOPEN_DB_HOST=db
David Haynes's avatar
David Haynes committed
29 30
      - WOPEN_DB_PORT=3306
      - WOPEN_SUPERUSER=admin
31
      - WOPEN_ENV="dev"