Skip to content

Instantly share code, notes, and snippets.

@dragonmantank
Created May 9, 2019
Embed
What would you like to do?
person_name=Ben Ramsey
version: '3.4'
services:
quoter:
image: php:cli
environment:
- person_name
command:
- php
- -r
- "print 'Hello ' . getenv('person_name') . PHP_EOL;"
$ docker-compose up -d
$ docker-compose logs quoter
quoter_1 | Hello Ben Ramsey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment