Stacks 2

HardCarry·2023년 12월 7일
  • 테스트 해보아야 할 사항
  • 로컬터널링이 될까?

네트워크 세팅 변경

version: "3.3"

services:
 postgres: 
  image: postgres:10.23-bullseye
  volumes:  # volume
   - type: volume
     source: postgres-data
     target: /var/lib/postgresql/data

   - 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: 
  - my-bridge
  
 adminer:
  image: adminer
  restart: always
  ports:
  - 9999:8080
  depends_on:
  - postgres
  networks: 
  - my-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"
  networks:
  - my-bridge
  volumes:  # volume
   - type: volume
     source: mongodb-configdb
     target: /data/configdb
   - type: volume
     source: mongodb-datadb
     target: /data/db
   - type: volume
     source: mongodb-usr-docekr-mongodb-data
     target: /usr/docekr/mongodb/data
   - /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:
  - my-bridge
  volumes:
    - /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: 
  - my-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: 
  - my-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: 
  - my-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: 
  - my-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: 
  - my-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: 
  - my-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: 
  - my-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: 
  - my-bridge
  volumes:
    - /etc/timezone:/etc/timezone:ro
    - /etc/localtime:/etc/localtime:ro

 my-gcg-manager:
  image: my-gcg-manager
  ports:
  - 9050:9050
  - 6050:6050
  logging:
   driver: "json-file"
   options:
    max-file: "5"
    max-size: "1g"
  networks: 
  - my-bridge
  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: 
  - my-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:
  - my-bridge   
   
volumes:
 postgres-data:
 mongodb-configdb:
 mongodb-datadb:
 mongodb-usr-docekr-mongodb-data:

networks:
 my-bridge:
  driver: bridge
 my-host:
  driver: host
profile
안녕하세요, 하드캐리입니다

0개의 댓글