[base] ;库来源 library = docker.shemic.com/ path = {base} network = iot [mysql] num = 1 image = db/mysql port = 3309:3306 volumes = {path}conf/db/mysql:/etc/mysql,/mysql/{name}/data:/var/lib/mysql environment = MYSQL_ROOT_PASSWORD=123456 [php] num = 1 #image = dev/php image = dev/php/mosquitto port = 8082:8080 #server-memcached:server-memcached link = [mysql]{num}:[mysql]{num} volumes_from = [mysql]{num} volumes = {path}web:/www,{path}conf/php:/etc/php5,/etc/hosts:/etc/hosts.main #host = test:127.0.0.1,test1:127.0.0.1 # 容器里对宿主机提供的指令的别名,可以直接用php -i访问容器中的php命令了 alias = php,composer [nginx] num = 1 image = web/nginx port = 80:80,443:443 link = [php]{num}:[php]{num} volumes_from = [php]{num} volumes = {path}web:/www,{path}conf/nginx:/etc/nginx,{path}logs/nginx/{name}/logs:/var/log/nginx