5 prism_languages: [yaml]
19 # build from Dockerfile
21 dockerfile: Dockerfile
39 docker-compose unpause
55 # build from Dockerfile
57 args: # Add build arguments
62 # build from custom Dockerfile
65 dockerfile: Dockerfile.dev
73 image: example-registry:4000/postgresql
82 - "8000:80" # host:container
86 # expose ports to linked services (not to host)
94 command: bundle exec thin -p 3000
95 command: [bundle, exec, thin, -p, 3000]
99 # override the entrypoint
100 entrypoint: /app/start.sh
101 entrypoint: [php, -d, vendor/bin/phpunit]
104 ### Environment variables
109 RACK_ENV: development
111 - RACK_ENV=development
115 # environment vars from file
117 env_file: [.env, .development.env]
123 # makes the `db` service available as the hostname `database`
124 # (implies depends_on)
131 # make sure `db` is alive before starting
139 # make this service extend another
141 file: common.yml # optional
148 - ./_data:/var/lib/mysql
160 com.example.description: "Accounting web app"
180 - "/dev/ttyUSB0:/dev/ttyUSB0"
199 - "somehost:192.168.1.100"
205 # creates a custom network called `frontend`
213 # join a pre-existing network
223 # Mount host paths or named volumes, specified as sub-options to a service
225 image: postgres:latest
227 - "/var/run/postgres/postgres.sock:/var/run/postgres/postgres.sock"
228 - "dbdata:/var/lib/postgresql/data"