Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.0'
- services:
- db:
- image: mysql:5.7
- ports:
- - "3307:3306"
- volumes:
- - ./openmrs_data:/var/lib/mysql
- - ./openmrs_mysql:/docker-entrypoint-initdb.d
- environment:
- - MYSQL_ROOT_PASSWORD=root
- - MYSQL_DATABASE=openmrs
- - MYSQL_USER=openmrs
- - MYSQL_PASSWORD=openmrs
- healthcheck:
- test: "exit 0"
- app:
- build: ./tomcat
- ports:
- - "8080:8080"
- - "5000:5000"
- depends_on:
- - db
- web:
- image: nginx:alpine
- ports:
- - "80:80"
- volumes:
- - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- - ./logs/access.log:/var/log/nginx/demo_access.log
- - ./logs/error.log:/var/log/nginx/demo_error.log
- - ./symptom-management:/var/www/symptom-management
- phpfpm:
- image: maurya/sm-php:7.1
- ports:
- - '9000:9000'
- volumes:
- - ./symptom-management:/var/www/symptom-management
- symptom_db:
- image: mysql:5.7
- ports:
- - '3306:3306'
- volumes:
- - ./symptommanagement_data:/var/lib/mysql
- - ./symptom-management/0_meta/sql:/docker-entrypoint-initdb.d
- environment:
- - MYSQL_ROOT_PASSWORD=root
- - MYSQL_DATABASE=symptom_management
- - MYSQL_USER=symptom_management_user
- - MYSQL_PASSWORD=symptom_management_password
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- restart: always
- ports:
- - '8081:80'
- environment:
- MYSQL_USERNAME: root
- MYSQL_ROOT_PASSWORD: root
- PMA_HOST: mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement