Created
May 25, 2019 03:19
-
-
Save rmsaitam/43da8ca7ab38dccce9852fafa969f50b to your computer and use it in GitHub Desktop.
Ambiente PHP 7.2 com Apache, extensões MySQL, PostgreSQL habilitados e composer instalado
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' | |
services: | |
#Apache + PHP Service | |
apache-php: | |
image: saitam10/apache2-php7.2 | |
container_name: apache2-php7.2 | |
restart: always | |
ports: | |
- "80:80" | |
depends_on: | |
- db | |
volumes: | |
- ./src:/var/www/html/:rw | |
#MySQL Service | |
db: | |
image: mysql:5.7 | |
container_name: serverdb_mysql | |
restart: always | |
ports: | |
- "3306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=admin | |
- MYSQL_DATABASE=nomebanco | |
- MYSQL_USER=user | |
- MYSQL_PASSWORD=secret | |
volumes: | |
- ./mysql/dbdata:/var/lib/mysql/ | |
#PHPMyAdmin | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
container_name: phpmyadmin | |
ports: | |
- "8080:80" | |
environment: | |
- MYSQL_ROOT_PASSWORD=admin | |
- MYSQL_USER=user | |
- MYSQL_PASSWORD=secret | |
depends_on: | |
- apache-php | |
- db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment