Last active
December 24, 2019 10:21
-
-
Save Tech-49/b7e0a3da03dc264af49f99e44166918a to your computer and use it in GitHub Desktop.
Revisions
-
Hardik revised this gist
Dec 24, 2019 . No changes.There are no files selected for viewing
-
Hardik created this gist
Dec 24, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,58 @@ version: '3' services: # The Application php: build: . image: php:7.2-apache working_dir: /var/www/html volumes: - ./:/var/www/html - ./php.ini:/usr/local/etc/php/php.ini extra_hosts: - "lara.local:127.0.0.1" hostname: lara.local domainname: local ports: - 80:80 depends_on: - redis environment: - "DB_PORT=3306" - "DB_HOST=database" # The Database database: image: mysql:5.7.28 volumes: - dbdata:/var/lib/mysql environment: - "MYSQL_DATABASE=homestead" - "MYSQL_USER=homestead" - "MYSQL_PASSWORD=secret" - "MYSQL_ROOT_PASSWORD=secret" ports: - "33061:3306" # phpmyadmin phpmyadmin: depends_on: - database image: phpmyadmin/phpmyadmin volumes: - ./phpmyadmin.ini:/usr/local/etc/php/php.ini restart: always ports: - '8081:80' environment: PMA_HOST: database MYSQL_ROOT_PASSWORD: secret redis: image: redis volumes: - redis_data:/data volumes: dbdata: redis_data: