-
-
Save dragonmantank/067001dac3d86d7e9b932a276b6a6802 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
person_name=Ben Ramsey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
quoter: | |
image: php:cli | |
environment: | |
- person_name | |
command: | |
- php | |
- -r | |
- "print 'Hello ' . getenv('person_name') . PHP_EOL;" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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