0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

docker sync ( docker-sync.yml ) で unison / rsync の Stragegy をコマンドの環境変数もしくは.envファイルで切り替える #docker

Last updated at Posted at 2020-04-12

docker-sync.yml

(他の設定は色々省略)

syncs:
 app-sync:
  sync_strategy: "${DOCKER_SYNC_STRATEGY}"

.env ファイルに指定する場合

DOCKER_SYNC_STRATEGY=rsync
docker-sync start

コマンドの環境変数に指定する場合

DOCKER_SYNC_STRATEGY=unison docker-sync start
DOCKER_SYNC_STRATEGY=rsync docker-sync start

stopなどの場合も同じ環境変数が必要になるので、わりと面倒

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?