Advertisement
Guest User

Untitled

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