docker-compose.yml 658 Bytes
Newer Older
1
version: "3"
2
services:
David Haynes's avatar
David Haynes committed
3
  db:
4
    image: mysql:5.7
5
    command: mysqld --character-set-server=utf8mb4
6
      --collation-server=utf8mb4_unicode_ci
David Haynes's avatar
David Haynes committed
7
8
9
    ports:
      - "3306:3306"
    environment:
10
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
David Haynes's avatar
David Haynes committed
11
12
13
14
15
      MYSQL_DATABASE: wopen
      MYSQL_USER: wopen
      MYSQL_PASSWORD: wopen

  api:
16
    build: .
17
18
    ports:
      - "8000:8000"
19
    command: ./docker-startup.sh
David Haynes's avatar
David Haynes committed
20
    depends_on:
David Haynes's avatar
David Haynes committed
21
      - db
David Haynes's avatar
David Haynes committed
22
23
24
25
26
    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
27
      - WOPEN_DB_HOST=db
David Haynes's avatar
David Haynes committed
28
29
      - WOPEN_DB_PORT=3306
      - WOPEN_SUPERUSER=admin