Container/Docker Compose
도커 컴포즈 및 스택 yml 파일 옵션 정리4 - configs / secrests
2mukee
2021. 11. 6. 16:56
320x100
320x100
configs
: config 파일을 지정하여 컨테이너에 대한 옵션 설정
ㆍ하위옵션
: file (구성 파일 경로)
: external (true로 설정시 이미 작성된 구성임을 알림)
: name (구성의 이름 설정)
configs:
my_first_config:
file: ./config_data
my_second_config:
external:
name: redis_config
secrets
: 암호화 파일 추가
ㆍ하위옵션
: file (비밀 파일 경로)
: external (true로 설정시 이미 작성된 비밀임을 알림)
: name (구성의 이름 설정)
secrets:
my_first_secret:
file: ./secret_data
my_second_secret:
external: true
name: redis_secret
Refference
Docker - 파일 버전 3 참조 작성 - 참조 및 지침 이 주제에서는 Compose 파일 형식의 버전 3에 대해 설
이 주제에서는 Compose 파일 형식의 버전 3에 대해 설명합니다. 이것은 최신 버전입니다. Compose 파일 형식에는 1, 2, 2.x 및 3.x의 여러 버전이 있습니다. 아래 표는 간략히 보여줍니다. 각 버전에 포함
runebook.dev
300x250
728x90