1. 7.2.도커 컴포즈를 사용해 여러 컨테이너로 구성된 애플리케이션 실행하기

    version: '3.7'
    
    services:
    
      accesslog:
        image: diamol/ch04-access-log
        networks:
          - app-net
    
      iotd:
        image: diamol/ch04-image-of-the-day
        ports:
          - "80"
        networks:
          - app-net
    
      image-gallery:
        image: diamol/ch04-image-gallery
        ports:
          - "8010:80" 
        depends_on:
          - accesslog
          - iotd
        networks:
          - app-net
    
    networks:
      app-net:
        external:
          name: nat
    
    • accesslog:
    • 공개하는 포트나 docker container run 명령에서 …
    read more
  2. 7.4.도커 컴포즈로 애플리케이션 설정값 지정하기

    001) version: "3.7"
    002) 
    003) services:
    004)   todo-db:
    005)     image: diamol/postgres:11.5
    006)     ports:
    007)       - "5433:5432"
    008)     networks:
    009)       - app-net
    010) 
    011)   todo-web:
    012)     image: diamol/ch06-todo-list
    013)     ports:
    014)       - "8030:80"
    015)     environment:
    016)       - Database:Provider=Postgres
    017)     depends_on:
    018)       - todo-db
    019)     networks:
    020)       - app-net …
    read more

links

social