Created
December 26, 2021 14:03
-
-
Save DerekChia/c01b270685465e85458afb3d6e642b13 to your computer and use it in GitHub Desktop.
Start a container, read and print the environment variable. Defaults to ONE if VARIABLE_ONE is not overridden
This file contains 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" | |
services: | |
hello_world: | |
container_name: ubuntu | |
image: ubuntu:latest | |
command: '/bin/sh -c "echo ${VARIABLE_ONE:-ONE}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment