Created
July 31, 2016 23:52
-
-
Save skydiver/84d5ab81f051ef0b677436deeaaf9f06 to your computer and use it in GitHub Desktop.
LAMP development environment using docker
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: '2' | |
services: | |
##################### | |
# DATABASE | |
##################### | |
db: | |
container_name: DEV-Apache-MariaDB | |
image : mariadb:latest | |
volumes : | |
- ./database/:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
##################### | |
# ADMINER | |
##################### | |
adminer: | |
container_name: DEV-Apache-Adminer | |
image : dehy/adminer:latest | |
ports: | |
- 3333:80 | |
depends_on: | |
- db | |
links: | |
- db | |
##################### | |
# APACHE | |
##################### | |
apache: | |
container_name: DEV-Apache | |
build : ./apache/ | |
volumes : | |
- ./html:/var/www/html/ | |
ports: | |
- 80:80 | |
- 443:443 | |
depends_on: | |
- db | |
links: | |
- db | |
##################### | |
# FAKE SMTP | |
##################### | |
mailcatcher: | |
container_name: DEV-Apache-MailCatcher | |
image : schickling/mailcatcher:latest | |
ports: | |
- 1080:1080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment