Created
November 8, 2015 13:45
-
-
Save bpteam/1d4457d14860b343840c to your computer and use it in GitHub Desktop.
My web dev docker-compose.yml
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
fpm: | |
image: php-fpm-dev #наш контейнер со всеми необходимыми расширениями | |
links: | |
- mysql | |
- memcached | |
volumes: | |
- ./:/var/www # подключаем проект к php-fpm | |
mysql: | |
image: mysql | |
volumes: | |
- ./data-mysql:/var/lib/mysql # сохранение файлов БД на хосте | |
environment: | |
MYSQL_ROOT_PASSWORD: 12345 | |
ports: | |
- 3306:3306 | |
memcached: | |
image: memcached | |
ports: | |
- 8080:1080 | |
nginx: | |
image: nginx | |
links: | |
- fpm | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./:/var/www # подключаем проект к php-fpm, также можно использовать volumes_from для подключения разелов из других контейнеров | |
- ./nginx:/etc/nginx/ # тянем настройки nginx из проекта |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment