Skip to content

Instantly share code, notes, and snippets.

@gustavoapolinario
Created February 6, 2017 16:29
Show Gist options
  • Save gustavoapolinario/8d0f8eb5527431d4da3e01fdbe324be6 to your computer and use it in GitHub Desktop.
Save gustavoapolinario/8d0f8eb5527431d4da3e01fdbe324be6 to your computer and use it in GitHub Desktop.
Docker compose for apache/php
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