version: '2'
services:
 web:
  restart: always
  build: .
  container_name: ruggedy-vma
  ports:
   - "80:80"
   - "443:443"
  environment:
   - DB_1_PORT_3306_TCP_ADDR=db
  depends_on:
   - db
  volumes_from:
   - web-data
 web-data:
  build: .
  entrypoint: /bin/true
  volumes:
   - ./:/usr/share/nginx/html/ruggedy-vma
 db:
  image: mysql:latest
  restart: always
  environment:
   - MYSQL_ROOT_PASSWORD=uh239r8hf
   - MYSQL_DATABASE=ruggedy_go
  ports:
   - "3306:3306"
  volumes_from:
   - db-data
 db-data:
  image: mysql:latest
  volumes:
   - /var/lib/mysql
  entrypoint: /bin/true
version: '2'
services:
 web:
  restart: always
  build: .
  container_name: ruggedy-vma
  ports:
   - "80:80"
   - "443:443"
  environment:
   - DB_1_PORT_3306_TCP_ADDR=db
  depends_on:
   - db
  volumes_from:
   - web-data
 web-data:
  build: .
  entrypoint: /bin/true
  volumes:
   - ./:/usr/share/nginx/html/ruggedy-vma
 db:
  image: mysql:5.7
  restart: always
  environment:
   - MYSQL_ROOT_PASSWORD=uh239r8hf
   - MYSQL_DATABASE=ruggedy_go
  ports:
   - "3306:3306"
  volumes_from:
   - db-data
 db-data:
  image: mysql:latest
  volumes:
   - /var/lib/mysql
  entrypoint: /bin/true
Fix issue with MySQL crash during docker build
Fix issue with MySQL crash during docker build
