[Docker]Stacks

HardCarry·2023년 2월 23일
0

노드매니저는 스택스가 아닌 직접실행

sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 5060:5060 --privileged -v /dev/bus/usb:/dev/bus/usb -v /etc/localtime:/etc/localtime:ro --restart=always --name=my-node-manager -v /usr/docker/node-manager/db:/NodeManager/bin/db my-node-manager

양액노드매니저는 스택스가 아닌 직접실행

sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 7080:7080 --privileged -v /dev/bus/usb:/dev/bus/usb -v /etc/localtime:/etc/localtime:ro --restart=always --name=my-irr-node -v /usr/docker/irr-node/db:/IRRNode/bin/db my-irr-node

24.08.19

cpu, 메모리 리소스 제한 설정 추가됨

version: "3.3"

# ----------------------------------------
# MINI-PC for Australia
# ----------------------------------------

services:
  # ----------------------------------------
  # postgres: the main database
  # ----------------------------------------
  postgres:
    image: postgres:10.23-bullseye
    volumes:  # volume
      - type: volume
        source: postgres-data
        target: /var/lib/postgresql/data
        volume:
          nocopy: true
      - type: bind
        source: /usr/local/docker/postgres-data
        target: /data/compose/64/postgres-data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    logging:
      driver: "json-file"
      options:
        max-file: "3"
        max-size: "1g"
    environment:
      POSTGRES_PASSWORD: postgres
    ports:
      - 5432:5432
    restart: always
    networks:
      - bridge
    deploy:
      resources:
        limits:
          memory: 2048M
          cpus: '1.5'
  # ----------------------------------------
  # adminer: Database management in a single PHP file
  # http://172.17.0.1:9999/
  # ----------------------------------------
  adminer:
    image: adminer
    restart: always
    ports:
      - 9999:8080
    depends_on:
      - postgres
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 128M
          cpus: '0.1'
  # ----------------------------------------
  # tomcat: the smartroot main service
  # /usr/local/tomcat/webapps/ROOT : smartroot
  # ----------------------------------------
  tomcat:
    image: tomcat-debian-java18-hangaram-test-23-05-05:latest
    restart: always
    ports:
      - 8080:8080
      - 8005:8005
      - 8443:8443
    working_dir: /usr/local/tomcat
    environment:
      - CATALINA_HOME=/usr/local/tomcat
      - UMASK="0022"
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - postgres
    networks:
      - bridge
    volumes:
      - /usr/docker/tomcat/webapps:/usr/local/tomcat/webapps
      - /usr/docker/tomcat/upload:/home/smartfarm/nginx/smartfarm/html/webapp/resources/2.0.0/img/upload
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 2048M
          cpus: '1.5'
  # ----------------------------------------
  # mongo-db: NoSQL database
  # used at node-menu, node-graph, node-diagram, node-alarm
  # ----------------------------------------
  mongo-db:
    image: my-mongodb
    restart: always
    ports:
      - 27017:27017
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - tomcat
    networks:
      - bridge
    volumes:  # volume
      - type: volume
        source: mongodb-configdb
        target: /data/configdb
        volume:
          nocopy: true
      - type: volume
        source: mongodb-datadb
        target: /data/db
        volume:
          nocopy: true
      - type: volume
        source: mongodb-usr-docekr-mongodb-data
        target: /usr/docekr/mongodb/data
        volume:
          nocopy: true
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # nginxForTomcat: reverse proxy for tomcat
  # ----------------------------------------
  nginxForTomcat:
    image: my-nginx-for-tomcat:230227
    logging:
      driver: "json-file"
      options:
        max-file: "3"
        max-size: "1g"
    ports:
      - 8880:80
    restart: always
    networks:
      - bridge
    volumes:
      - /usr/docker/tomcat/webapps/ROOT/resources:/usr/share/nginx/html/resources:ro
      - /usr/docker/tomcat/upload:/usr/share/nginx/html/resources/2.0.0/img/upload:ro
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    depends_on:
      - tomcat
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # nginxForGateway: Main http server
  # route to node-menu, node-graph, node-diagram, node-alarm and nginxForTomcat
  # Change portno: 80 -> 8800 (80 allocate smartroot-admin-front)
  # ----------------------------------------
  nginxForGateway:
    image: my-nginx-for-gateway:latest
    logging:
      driver: "json-file"
      options:
        max-file: "3"
        max-size: "1g"
    ports:
      - 8800:80
    restart: always
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    depends_on:
      - tomcat
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # node modules for smartroot dashboard
  # ----------------------------------------
  # 1) node-menu: menu module
  #    port: 8092, context: /menu
  node-menu:
    image: my-node-menu
    restart: always
    ports:
      - 8092:8092
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - mongo-db
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # 2) node-graph: graph module
  #    port: 8098, context: /maingraph
  node-graph:
    image: my-node-graph
    restart: always
    ports:
      - 8098:8098
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - mongo-db
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # 3) node-diagram: diagram module
  #    port: 8096, context: /diagram
  node-diagram:
    image: my-node-diagram
    restart: always
    ports:
      - 8096:8096
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - mongo-db
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # 4) node-alarm: alarm module
  #    port: 8094, context: /alarm/1.0, socket.io
  node-alarm:
    image: my-node-alarm
    restart: always
    ports:
      - 8094:8094
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - mongo-db
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # sfsb-api: smartroot-weather
  #   java -jar /sfsb_api-0.0.1-SNAPSHOT.jar (java 8)
  # ----------------------------------------
  sfsb-api:
    image: my-sfsb-api
    # unnecessary port mapping: insert weather information directly into the "tb_forecast" table in time scheduler.
    ports:
      - 9092:8092
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - postgres
    networks:
      - bridge
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # local-tunnel-client
  #   port: 8888
  # ----------------------------------------
  local-tunnel-client:
    image: local-tunnel-client
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - tomcat
    networks:
      - host
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # my-gcg-manager: GCGManager
  # ----------------------------------------
  my-gcg-manager:
    image: my-gcg-manager:2024-08-07
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    networks:
      - host
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /usr/docker/gcg/db:/GCGManager/bin/db
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # my-irr-gcg: IRRGCG
  # ----------------------------------------
  my-irr-gcg:
    image: my-irr-gcg
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    networks:
      - host
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /usr/docker/irr-gcg/db:/IRRGCG/bin/db

  # ----------------------------------------
  # my-irr-node: IRRNode
  # ----------------------------------------
  my-irr-node:
    image: my-irr-node
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    networks:
      - host
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /usr/docker/irr-node/db:/IRRNode/bin/db

  # ----------------------------------------
  # heartbeat
  # ----------------------------------------
  heartbeat:
    image: heartbeat:2024-01-04
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - local-tunnel-client
    networks:
      - bridge
    deploy:
      resources:
        limits:
          memory: 256M
          cpus: '0.5'
  # ----------------------------------------
  # jenkins: build smartroot
  # ----------------------------------------
  jenkins:
    #image: hardcarry/jenkins:2.346.2-centos7-jdk8
    image: my-jenkins:latest
    ports:
      - 9090:8080
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - tomcat
    volumes:
      - /usr/docker/jenkins:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - bridge
    deploy:
      resources:
        limits:
          memory: 2048M
          cpus: '1.5'
  # ----------------------------------------
  # ----------------------------------------
  # MGS system and dashboard
  # ----------------------------------------
  # ----------------------------------------

  # ----------------------------------------
  # mysql: for tms
  # use offical release. no dockerfile
  # ----------------------------------------
  mysql:
    image: mysql:8.4.0
    ports:
      - 3306:3306
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: rnd!#24a
    volumes:
      - /usr/docker/mysql/mysql-data:/var/lib/mysql
    networks:
      - bridge

  # ----------------------------------------
  # my-tms: tms (user auth)
  # ----------------------------------------
  my-tms:
    image: my-tms:latest
    ports:
      - 28080:28080
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    environment:
      SPRING_PROFILES_ACTIVE: minipc
    networks:
      - bridge

  # ----------------------------------------
  # my-auth: auth module
  # ----------------------------------------
  my-auth:
    image: my-auth:latest
    ports:
      - 38080:38080
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    environment:
      SPRING_PROFILES_ACTIVE: minipc
    networks:
      - bridge

  # ----------------------------------------
  # my-mgs-admin-backend: MGS admin backend
  # ----------------------------------------
  my-mgs-admin-backend:
    image: mgs-admin-backend:latest
    ports:
      - 19090:19090
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    environment:
      SPRING_PROFILES_ACTIVE: minipc
    networks:
      - bridge

  # ----------------------------------------
  # my-mgs-admin-frontend: MGS admin frontend
  # ----------------------------------------
  my-mgs-admin-frontend:
    image: mgs-admin-frontend:latest
    ports:
      - 18080:80
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    networks:
      - bridge

  # ----------------------------------------
  # my-smartroot-admin-frontend: smartroot admin frontend
  # ----------------------------------------
  my-smartroot-admin-frontend:
    image: smartroot-admin-frontend:latest
    ports:
      - 80:80
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    networks:
      - bridge

  # ----------------------------------------
  # my-sso-backend: smartroot admin frontend
  # ----------------------------------------
  my-sso-backend:
    image: my-sso-backend:latest
    ports:
      - 18082:18082
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "1g"
    depends_on:
      - nginxForGateway
    networks:
      - bridge

volumes:
  postgres-data:
  mongodb-configdb:
  mongodb-datadb:
  mongodb-usr-docekr-mongodb-data:

networks:
  bridge:
    external: true
  host:
    external: true

24.01.08

양액기는 없고 로컬터널링됨.아래 양액기 되는거랑 조합 하면되겠다 나중에

version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: tomcat-debian-java18-hangaram-test-23-05-05:latest
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 my-gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/gcg/db:/GCGManager/bin/db
  
 my-irr-gcg:
  image: my-irr-gcg
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/irr-gcg/db:/IRRGCG/bin/db
 
 my-irr-node:
  image: my-irr-node
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/irr-node/db:/IRRNode/bin/db
    
 heartbeat:
  image: heartbeat:2024-01-04
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
 jenkins:
  image: hardcarry/jenkins:2.346.2-centos7-jdk8
  ports:
  - 9090:8080
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  volumes:
  - /usr/docker/jenkins:/var/jenkins_home
  networks:
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

23.12.07

양액기 추가

version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: tomcat-debian-java18-hangaram-test-23-05-05:latest
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 my-gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/gcg/db:/GCGManager/bin/db
  
 my-irr-gcg:
  image: my-irr-gcg
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/irr-gcg/db:/IRRGCG/bin/db
 
 my-irr-node:
  image: my-irr-node
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/irr-node/db:/IRRNode/bin/db
    
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
 jenkins:
  image: hardcarry/jenkins:2.346.2-centos7-jdk8
  ports:
  - 9090:8080
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  volumes:
  - /usr/docker/jenkins:/var/jenkins_home
  networks:
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

23.06.02

젠킨스 추가

젠킨스 에러 해결 방법
sudo chown -R 1000:1000 [로컬에 디렉토리]
ex) sudo chown -R 1000:1000 /usr/docker/jenkins

version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: tomcat-debian-java18-hangaram-test-23-05-05:latest
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 my-gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/gcg/db:/GCGManager/bin/db
   
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
 jenkins:
  image: hardcarry/jenkins:2.346.2-centos7-jdk8
  ports:
  - 9090:8080
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  volumes:
  - /usr/docker/jenkins:/var/jenkins_home
  networks:
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

23.05.10

gcg에서 db가 유지 되지 않아서 볼륨 추가

version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: tomcat-debian-java18-hangaram-test-23-05-05:latest
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 my-gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /usr/docker/gcg/db:/GCGManager/bin/db
   
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

23.05.05

NODE-MANAGER 는 장치와 통신이 잘 안되네 그래서 stacks 에서 뺀다. 노드매니저는 아래와 같이 그냥 돌려

sudo docker run --log-opt max-size=10m --log-opt max-file=20 -itd -p 5060:5060 --privileged -v /dev/bus/usb:/dev/bus/usb -v /etc/localtime:/etc/localtime:ro -v /usr/docker/node-manager/db:/NodeManager/bin/db --restart=always --name=my-node-manager my-node-manager-2023-06-02


#2023.05.02
# local-tunnel-client 의 networks는 host로 사용하여야 함.
# 왜냐하면, outbound port가 랜덤으로 생성 되기 때문
version: "3.3"


services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: tomcat-debian-java18
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  restart: always
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 gcg-manager:
  image: my-gcg-manager-test
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

23.05.04

# NodeManager USB 연결을 위한 - v 추가
version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: my-centos7-tomcat
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  ports:
   - 9050:9050
   
 node-manager:
  image: my-node-manager-test
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    - /dev/bus/usb:/dev/bus/usb
  ports:
   - 5060:5060
  
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true
#2023.05.02
# local-tunnel-client 의 networks는 host로 사용하여야 함.
# 왜냐하면, outbound port가 랜덤으로 생성 되기 때문
version: "3.3"


services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: my-centos7-tomcat
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 gcg-manager:
  image: my-gcg-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  ports:
   - 9050:9050
   
 node-manager:
  image: my-node-manager
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  ports:
   - 5060:5060
  
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true
#2023.05.02
# local-tunnel-client 의 networks는 host로 사용하여야 함.
# 왜냐하면, outbound port가 랜덤으로 생성 되기 때문
version: "3.3"


services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: my-centos7-tomcat
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 node-manager:
  image: node-manager-test
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  ports:
   - 5060:5060
  
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true
#2023.04.27
version: "3.3"


services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: my-centos7-tomcat
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:230227
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  ports:
  - 8888:9111
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 node-manager:
  image: node-manager-test
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  ports:
   - 5060:5060
  
 heartbeat:
  image: heartbeat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - local-tunnel-client
  networks: 
  - bridge
  
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true

version: "3.3"


services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data
     volume:
       nocpy: true
   - type: bind
     source: /usr/local/docker/postgres-data
     target: /data/compose/64/postgres-data
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  environment:
   POSTGRES_PASSWORD: postgres
  ports:
  - 5432:5432  
  restart: always
  networks: 
  - bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 tomcat:
  image: my-centos7-tomcat
  restart: always
  ports:
  - 8080:8080
  - 8005:8005
  - 8443:8443
  working_dir: /usr/local/tomcat
  environment:
  - CATALINA_HOME=/usr/local/tomcat
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks:
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 mongo-db:
  image: my-mongodb
  ports:
  - 27017:27017
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
     volume:
       nocpy: true
   - type: volume
     source: mongodb-datadb
     target: /data/db
     volume:
       nocpy: true
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
     volume:
       nocpy: true
   - /etc/timezone:/etc/timezone:ro
   - /etc/localtime:/etc/localtime:ro   
 

 nginxForTomcat:
  image: my-nginx-for-tomcat:221216
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 8880:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat
  
 nginxForGateway:
  image: my-nginx-for-gateway:latest
  logging:
   driver: "json-file"
   options:
    max-file: "3" 
    max-size: "1g"
  ports:
  - 80:80
  restart: always
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
  depends_on:
  - tomcat 
      
 node-menu:
  image: my-node-menu
  ports:
  - 8092:8092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-graph:
  image: my-node-graph
  ports:
  - 8098:8098
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-diagram:
  image: my-node-diagram
  ports:
  - 8096:8096
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 node-alarm:
  image: my-node-alarm
  ports:
  - 8094:8094
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - mongo-db
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
    
 sfsb-api:
  image: my-sfsb-api
  ports:
  - 9092:9092
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - postgres
  networks: 
  - bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
 local-tunnel-client:
  image: local-tunnel-client
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  depends_on:
  - tomcat
  networks: 
  - host
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro
 
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 bridge:
  external: true
 host:
   external: true
profile
안녕하세요, 하드캐리입니다

0개의 댓글