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

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

15
  web:
16
    build: .
17
    ports:
18
      - '8000:8000'
19
    command: ./docker-startup.sh
20 21 22 23
    volumes:
      - .:/go
    depends_on:
      - db
mdsecurity's avatar
mdsecurity committed
24
    environment:
David Haynes's avatar
David Haynes committed
25
      - GO_ENV=dev
26 27 28 29 30 31 32 33 34 35 36 37 38
      - GO_ALLOWED_HOSTS=*
      - GO_EMAIL_DOMAIN=@masonlive.gmu.edu
      - GO_DB_NAME=go
      - GO_DB_USER=go
      - GO_DB_PASSWORD=go
      - GO_DB_HOST=db
      - GO_DB_PORT=3306
      - GO_EMAIL_HOST=
      - GO_EMAIL_PORT=
      - GO_EMAIL_HOST_USER=
      - GO_EMAIL_HOST_PASSWORD=
      - GO_EMAIL_FROM=
      - GO_EMAIL_TO=