Created
February 6, 2017 16:29
-
-
Save gustavoapolinario/8d0f8eb5527431d4da3e01fdbe324be6 to your computer and use it in GitHub Desktop.
Docker compose for apache/php
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
db: | |
image: mariadb:latest | |
environment: | |
- MYSQL_ROOT_PASSWORD=Eak829ij23 | |
- MYSQL_USER=dba | |
- MYSQL_PASSWORD=zoilo367 | |
- TERM=xterm-256color | |
ports: | |
- "3306:3306" | |
redis: | |
image: redis | |
apache: | |
build: ./apache-php | |
ports: | |
- "80:80" | |
- "443:443" | |
links: | |
- db | |
- redis | |
volumes: | |
- ./html:/var/www/html | |
- ./apache-php/php.ini:/etc/php/conf.d/30-custom.ini | |
- ./apache-php/apache.conf:/etc/apache2/sites-enabled/apache.conf | |
environment: | |
- RACK_ENV=development | |
- BOOT2DOCKER=1 | |
- TERM=xterm-256color | |
- ALLOW_OVERRIDE=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment