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

3
services:
4
  db:
5
    image: mysql:5.7
6
    command: mysqld --character-set-server=utf8mb4
7
      --collation-server=utf8mb4_unicode_ci
8 9 10
    ports:
      - "3306:3306"
    environment:
11
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
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
21 22
    volumes:
      - .:/whats-open
23
    depends_on:
24
      - db
25 26 27 28 29
    environment:
      - WOPEN_EMAIL_DOMAIN=@masonlive.gmu.edu
      - WOPEN_DB_NAME=wopen
      - WOPEN_DB_USER=wopen
      - WOPEN_DB_PASSWORD=wopen
30
      - WOPEN_DB_HOST=db
31 32
      - WOPEN_DB_PORT=3306
      - WOPEN_SUPERUSER=admin
33
      - WOPEN_ENV="dev"