version: "3" services: db: image: mysql deploy: replicas: 1 restart_policy: condition: on-failure networks: - gonet ports: - "3306:3306" environment: MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' MYSQL_DATABASE: go MYSQL_USER: go MYSQL_PASSWORD: go web: image: go_web deploy: replicas: 1 restart_policy: condition: on-failure networks: - gonet ports: - '8000:8000' command: /bin/bash ./startup.sh -python go/manage.py runserver 0.0.0.0:8000 volumes: - .:/go depends_on: - db environment: - GO_ALLOWED_HOSTS=* - GO_EMAIL_DOMAIN=@masonlive.gmu.edu - GO_CAS_URL=https://cas.srct.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= - superuser=dhaynes3 networks: gonet: