Skip to content

Instantly share code, notes, and snippets.

@akeemphilbert
Created July 24, 2021 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akeemphilbert/bce45b35ccc2eb8262eff95950989d21 to your computer and use it in GitHub Desktop.
Save akeemphilbert/bce45b35ccc2eb8262eff95950989d21 to your computer and use it in GitHub Desktop.
Sample Docker Compose
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