Skip to content

Instantly share code, notes, and snippets.

@kerihenare
Last active February 18, 2022 21:50
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerihenare/fc546a4ef97807589ad641164e2e80ba to your computer and use it in GitHub Desktop.
Save kerihenare/fc546a4ef97807589ad641164e2e80ba to your computer and use it in GitHub Desktop.
Quick MAMP docker example
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:
@kerihenare
Copy link
Author

docker-compose up -d

@swick7
Copy link

swick7 commented Nov 11, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment