xxxxxxxxxx
services:
web:
labels:
com.example.description: "Accounting web app"
xxxxxxxxxx
# build from custom Dockerfile
build:
context: ./dir
dockerfile: Dockerfile.dev
xxxxxxxxxx
# build from image
image: ubuntu
image: ubuntu:14.04
image: tutum/influxdb
image: example-registry:4000/postgresql
image: a4bc65fd
xxxxxxxxxx
# expose ports to linked services (not to host)
expose: ["3000"]
xxxxxxxxxx
# command to execute
command: bundle exec thin -p 3000
command: [bundle, exec, thin, -p, 3000]
xxxxxxxxxx
# override the entrypoint
entrypoint: /app/start.sh
entrypoint: [php, -d, vendor/bin/phpunit]