Skip to content

Instantly share code, notes, and snippets.

@dura0ok
Created April 17, 2019 14:56
Show Gist options
  • Save dura0ok/219120bfa14222abc7fe6b4adc4f6b8d to your computer and use it in GitHub Desktop.
Save dura0ok/219120bfa14222abc7fe6b4adc4f6b8d to your computer and use it in GitHub Desktop.
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