Last active
February 18, 2022 21:50
-
-
Save kerihenare/fc546a4ef97807589ad641164e2e80ba to your computer and use it in GitHub Desktop.
Quick MAMP docker example
This file contains 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: '2' | |
services: | |
web: | |
image: php:apache | |
restart: unless-stopped | |
volumes: | |
- $PWD:/var/www | |
ports: | |
- 80:80 | |
- 443:443 | |
links: | |
- mysql | |
mysql: | |
image: mysql:5.7 | |
restart: unless-stopped | |
environment: | |
- MYSQL_DATABASE=app | |
- MYSQL_USER=app | |
- MYSQL_PASSWORD=app | |
- MYSQL_ROOT_PASSWORD=password | |
ports: | |
- 3306:3306 | |
volumes: | |
- mysql:/var/lib/mysql | |
volumes: | |
mysql: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you add a little more detail?
Downloading your file and executing your command, I am left with a "Forbidden" message when I go to http://localhost, and I'm just guessing at what URL to use.
If you gave more instructions, I'm guessing this project would get a whole lot more attention. Thanks!