Last active
September 8, 2018 12:24
-
-
Save Eduard-gan/199170e17b11ce3b1929868af7935f4d 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
version: '2' | |
services: | |
test: | |
image: debian:stable | |
env_file: | |
- ./vars | |
stdin_open: true # Аналог docker run -i. Это оставляет контэйнер запущенным в бэкграунде | |
tty: true # Аналог docker run -t. Это оставляет контэйнер запущенным в бэкграунде |
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
# Находится в том же каталоге что и доекр-компоуз | |
LOL="KEK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment