Advertisement
burke

Untitled

May 14th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.52 KB | None | 0 0
  1. version: '3.0'
  2.  
  3. services:
  4.   db:
  5.     image: mysql:5.7
  6.     ports:
  7.      - "3307:3306"
  8.     volumes:
  9.      - ./openmrs_data:/var/lib/mysql
  10.       - ./openmrs_mysql:/docker-entrypoint-initdb.d
  11.     environment:
  12.      - MYSQL_ROOT_PASSWORD=root
  13.       - MYSQL_DATABASE=openmrs
  14.       - MYSQL_USER=openmrs
  15.       - MYSQL_PASSWORD=openmrs
  16.     healthcheck:
  17.       test: "exit 0"
  18.  
  19.   app:
  20.     build: ./tomcat
  21.     ports:
  22.      - "8080:8080"
  23.       - "5000:5000"
  24.     depends_on:
  25.      - db
  26.  
  27.   web:
  28.     image: nginx:alpine
  29.     ports:
  30.      - "80:80"
  31.     volumes:
  32.      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
  33.       - ./logs/access.log:/var/log/nginx/demo_access.log
  34.       - ./logs/error.log:/var/log/nginx/demo_error.log
  35.       - ./symptom-management:/var/www/symptom-management
  36.  
  37.   phpfpm:
  38.     image: maurya/sm-php:7.1
  39.     ports:
  40.      - '9000:9000'
  41.     volumes:
  42.      - ./symptom-management:/var/www/symptom-management
  43.  
  44.   symptom_db:
  45.     image: mysql:5.7
  46.     ports:
  47.      - '3306:3306'
  48.     volumes:
  49.      - ./symptommanagement_data:/var/lib/mysql
  50.       - ./symptom-management/0_meta/sql:/docker-entrypoint-initdb.d
  51.     environment:
  52.      - MYSQL_ROOT_PASSWORD=root
  53.       - MYSQL_DATABASE=symptom_management
  54.       - MYSQL_USER=symptom_management_user
  55.       - MYSQL_PASSWORD=symptom_management_password
  56.  
  57.   phpmyadmin:
  58.     image: phpmyadmin/phpmyadmin
  59.     restart: always
  60.     ports:
  61.      - '8081:80'
  62.     environment:
  63.       MYSQL_USERNAME: root
  64.       MYSQL_ROOT_PASSWORD: root
  65.       PMA_HOST: mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement