Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- mysql:
- image: mysql:5
- expose:
- - "3306"
- environment:
- MYSQL_ROOT_PASSWORD: 12345
- MYSQL_DATABASE: lamp-teste
- php-unit:
- image: phpunit/phpunit:5.7.12
- php-5.6:
- image: php:5.6
- ports:
- - 8080:80
- volumes:
- - ./log/apache2/error.log:/var/log/apache2/error.log
- - ./log/apache2/access.log:/var/log/apache2/access.log
- - ./html:/var/www/html
- environment:
- WORDPRESS_DB_HOST: mysql
- WORDPRESS_DB_USER: root
- depends_on:
- - mysql
- - php-unit
- Recreating dockerlampteste_mysql_1 ...
- Recreating dockerlampteste_php-unit_1 ...
- Recreating dockerlampteste_php-unit_1
- Recreating dockerlampteste_mysql_1 ... done
- Recreating dockerlampteste_php-5.6_1 ...
- Recreating dockerlampteste_php-5.6_1 ... done
- Name Command State Ports
- ----------------------------------------------------------------------
- dockerlampteste_mysql_1 docker-entrypoint.sh mysqld Up
- 3306/tcp
- dockerlampteste_php-5.6_1 docker-php-entrypoint php -a Exit 0
- dockerlampteste_php-unit_1 /usr/local/bin/phpunit --help Exit 0
Add Comment
Please, Sign In to add comment