-
-
Save jonathangreco/fa9134234717e8f052ecf98ee5a74164 to your computer and use it in GitHub Desktop.
docker ps
This file contains hidden or 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
# Symfony application's path (absolute or relative) | |
SYMFONY_APP_PATH=../src | |
# MySQL | |
MYSQL_ROOT_PASSWORD=root | |
MYSQL_DATABASE=toto | |
MYSQL_USER=admin | |
MYSQL_PASSWORD=admin | |
# Timezone | |
TIMEZONE=Europe/Paris |
This file contains hidden or 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: | |
db: | |
image: mysql | |
volumes: | |
- "./.data/db:/var/lib/mysql" | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} | |
MYSQL_DATABASE: ${MYSQL_DATABASE} | |
MYSQL_USER: ${MYSQL_USER} | |
MYSQL_PASSWORD: ${MYSQL_PASSWORD} | |
php: | |
build: | |
context: php7-fpm | |
args: | |
TIMEZONE: ${TIMEZONE} | |
volumes: | |
- ${SYMFONY_APP_PATH}:/var/www/symfony | |
- ./logs/symfony:/var/www/symfony/app/logs | |
nginx: | |
build: nginx | |
ports: | |
- 80:80 | |
volumes_from: | |
- php | |
volumes: | |
- ./logs/nginx/:/var/log/nginx | |
elk: | |
image: willdurand/elk | |
ports: | |
- 81:80 | |
volumes: | |
- ./elk/logstash:/etc/logstash | |
- ./elk/logstash/patterns:/opt/logstash/patterns | |
volumes_from: | |
- php | |
- nginx |
This file contains hidden or 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
7961c7e6880a willdurand/elk "/usr/bin/supervisor…" 33 minutes ago Up 34 minutes 0.0.0.0:81->80/tcp docker_build_elk_1 | |
c9b77832e83a docker_build_nginx "nginx" 33 minutes ago Up 34 minutes 0.0.0.0:80->80/tcp, 443/tcp docker_build_nginx_1 | |
0e72c3768a96 mysql "docker-entrypoint.s…" 33 minutes ago Up 34 minutes 3306/tcp docker_build_db_1 | |
6a518d7c71f8 docker_build_php "docker-php-entrypoi…" 33 minutes ago Up 34 minutes 9000/tcp docker_build_php_1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment