version: '2' services: # The Application app: container_name: willaengine #build: # context: ./ image: registry.willaspace.com/willaspace/willaengine volumes: - ~/apps/nginx/www/willaengine/storage:/var/www/storage - ~/apps/nginx/www/willaengine/public:/var/www/public env_file: '.env.prod' environment: - "DB_HOST=mysql_database" - "REDIS_HOST=cache" # The Database database: container_name: mysql_database image: mysql volumes: - dbdata:/var/lib/mysql environment: - "MYSQL_DATABASE=willaengine" - "MYSQL_USER=wmuser" - "MYSQL_PASSWORD=ksgHJujtfYSUYiGJdfuK9w7dstfs" - "MYSQL_ROOT_PASSWORD=ksgHJujtfYSUYiGJdfuK9w7dstfs" ports: - 3306:3306 # redis cache: container_name: cache image: redis:alpine volumes: dbdata: