Created
April 17, 2019 14:56
-
-
Save dura0ok/219120bfa14222abc7fe6b4adc4f6b8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
container_name: "discounts-app" | |
build: | |
context: ./ | |
volumes: | |
- ./:/var/www | |
- ./000-default.conf:/etc/apache2/sites-available/000-default.conf | |
- ./logs:/var/log/apache2 | |
ports: | |
- 8080:80 | |
working_dir: /var/www | |
depends_on: | |
- mysql | |
mysql: | |
container_name: "discounts-db" | |
image: mysql:5.7 | |
volumes: | |
- dbdata | |
environment: | |
MYSQL_ROOT_PASSWORD: admin | |
MYSQL_DATABASE: core_production | |
MYSQL_USER: homestead | |
MYSQL_PASSWORD: secret | |
ports: | |
- 33306:3306 | |
volumes: | |
dbdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment