Composeのその他の機能

ComposeコマンドをリモートのDockerホストに対して実施して、1つのホストから複数のホストにアプリを展開することができる

### 環境変数

1
2
3
4
5
version: '3.7'
services:
  web:
    image: ${DHUB}/c5env:${IMG_VER}
    container_name: c5env

その他の命令

1
2
3
4
5
6
7
8
9
10
version: '3.7'
services:
  python:
    image: alpine:3.10.3
    container_name: alpine
    command: ["tail", "-f", "/dev/null"]
    tty: true
    env_file: python.env
    stop_signal: SIGKILL
    network_mode: "none"