Created
July 24, 2021 21:48
-
-
Save akeemphilbert/bce45b35ccc2eb8262eff95950989d21 to your computer and use it in GitHub Desktop.
Sample Docker Compose
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: "3.1" | |
services: | |
redis: | |
image: redis:3.2 | |
db: | |
image: mysql:5 | |
environment: | |
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD | |
- MYSQL_DATABASE=$MYSQL_DATABASE | |
- MYSQL_USER=$MYSQL_USER | |
- MYSQL_PASSWORD=$MYSQL_PASSWORD | |
ports: | |
- "3306:3306" | |
webserver: | |
build: . | |
ports: | |
- "6080:80" | |
volumes: | |
- .:/var/www/html | |
environment: | |
APACHE_DOCUMENT_ROOT: /var/www/html | |
#change the line below with your IP address | |
XDEBUG_CONFIG: remote_host=192.168.1.31 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment