Last active
December 26, 2021 10:52
-
-
Save DerekChia/331ae566c023712e5359e940594ed819 to your computer and use it in GitHub Desktop.
Start a container, read and print the environment variable stored in .env file
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 | |
env_file: .env # optional, change this if your filename is different | |
command: '/bin/sh -c "echo $$VARIABLE_ONE"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment