Skip to content

Instantly share code, notes, and snippets.

@brunokunace
Created March 14, 2018 12:38
Show Gist options
  • Select an option

  • Save brunokunace/190e2aeaf02a03e28d9776b34f87f092 to your computer and use it in GitHub Desktop.

Select an option

Save brunokunace/190e2aeaf02a03e28d9776b34f87f092 to your computer and use it in GitHub Desktop.
# v2 syntax
version: '2'
services:
mysql-HOST:
image: ambientum/mysql:5.7
container_name: mysql-HOST
volumes:
- ./.docker/mysql:/var/lib/mysql
ports:
- "3398:3306"
environment:
- MYSQL_ROOT_PASSWORD=HOST
- MYSQL_DATABASE=HOST
- MYSQL_USER=HOST
- MYSQL_PASSWORD=HOST
apache-HOST:
image: ambientum/php:7.1-apache
container_name: apache-HOST
volumes:
- .:/var/www/app
ports:
- "8098:8080"
links:
- mysql-HOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment