Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.63 KB | None | 0 0
  1. ---
  2. services:
  3.   jboss:
  4.     build: jboss
  5.     container_name: jboss
  6.     depends_on:
  7.      - mysqldb
  8.     links:
  9.      - "mysqldb:mysqldblocalhost"
  10.     ports:
  11.      #Debugging port
  12.       - "4002:4002"
  13.       #Management port
  14.       - "9990:9990"
  15.     volumes:
  16.      - "./../deployments:/opt/jboss/wildfly/standalone/deployments/"
  17.       - "./jboss/standalone_adminAccess.xml:/opt/jboss/wildfly/standalone/configuration/standalone.xml"
  18.  
  19.   maven:
  20.     build: maven
  21.     command: "mvn flyway:baseline"
  22.     container_name: maven
  23.     depends_on:
  24.      - mysqldb
  25.     links:
  26.      - "mysqldb:mysqldblocalhost"
  27.     volumes:
  28.      - "./maven/files:/maven"
  29.     working_dir: /maven
  30.     restart: on-failure
  31.  
  32.   mysqldb:
  33.     build: mysqldb
  34.     container_name: mysqldb
  35.     environment:
  36.       MYSQL_ROOT_PASSWORD: 'pass'
  37.       MYSQL_DATABASE: 'ConcertLiveCheck'
  38.       MYSQL_PORT: '3306'
  39.     expose:
  40.      - 3306
  41.     ports:
  42.      - "3306:3306"
  43.     shm_size: 2g
  44.     volumes:
  45.      - "./mysqldb/mysqlEntrypoint.sql:/docker-entrypoint-initdb.d/startScript.sql"
  46.     healthcheck:
  47.       test: "/usr/bin/mysql --user=user --password=pass --execute \"SHOW DATABASES;\""
  48.       interval: 5s
  49.       timeout: 20s
  50.       retries: 10
  51.  
  52.   node-angular:
  53.     build:
  54.       context: ../
  55.       dockerfile: images/node-angular/Dockerfile
  56.       args:
  57.         configuration: prod
  58.     #ports:
  59.     #  - "5000:5000"
  60.     expose:
  61.      - "5000"
  62.  
  63.   proxy:
  64.     build: nginx-load-balancer
  65.     container_name: nginx-load-balancer
  66.     links:
  67.      - node-angular
  68.     ports:
  69.      - "80:80"
  70.  
  71.   redis:
  72.     build: redis
  73.     container_name: redis
  74.  
  75. version: "3.2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement