Сабж. Очень надо.
docker-compose:
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- /home/ilya/projects/main:/code
- /home/ilya/projects/main/site.conf:/etc/nginx/conf.d/site.conf
links:
- php
- mysql
networks:
- vpcbr
gearman:
image: mikolatero/gearman-job-server
ports:
- "4730:4730"
networks:
vpcbr:
ipv4_address: 172.18.0.11
php:
build:
context: .
dockerfile: php-gearman.dockerfile
volumes:
- /home/ilya/projects/main:/code
links:
- mysql
command: bash -c "docker-php-ext-install pdo pdo_mysql && cd /code && composer update && php-fpm"
networks:
- vpcbr
redis:
image: redis:3.2.11
ports:
- 6379:6379
networks:
vpcbr:
ipv4_address: 172.18.0.12
mysql:
image: mysql:5.7
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=pass
command: mysqld --sql_mode=""
networks:
vpcbr:
ipv4_address: 172.18.0.10
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql:db
ports:
- "8082:80"
environment:
- PMA_USER=root
- PMA_PASSWORD=pass
- PHP_UPLOAD_MAX_FILESIZE=100MB
networks:
- vpcbr
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
# gateway: 172.18.0.1