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
152 # automatically restart container
153 restart: unless-stopped
154 # always, on-failure, no (default)
166 com.example.description: "Accounting web app"
186 - "/dev/ttyUSB0:/dev/ttyUSB0"
205 - "somehost:192.168.1.100"
211 # creates a custom network called `frontend`
219 # join a pre-existing network
229 # mount host paths or named volumes, specified as sub-options to a service
231 image: postgres:latest
233 - "/var/run/postgres/postgres.sock:/var/run/postgres/postgres.sock"
234 - "dbdata:/var/lib/postgresql/data"
248 # specifying both user and group with ids