forked from orangehrm/orangehrm-dev-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·144 lines (136 loc) · 4.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '2.2'
services:
nginx:
image: nginx:1.14
ports:
- "443:443"
volumes:
- ./html:/var/www/html
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/virtual-servers:/etc/nginx/conf.d/virtual-servers
- ./config/nginx/cert:/etc/nginx/cert
- ./config/nginx/ssl:/etc/nginx/ssl
- ./logs/nginx_logs/web56:/var/log/nginx/web56
- ./logs/nginx_logs/web70:/var/log/nginx/web70
- ./logs/nginx_logs/web71:/var/log/nginx/web71
- ./logs/nginx_logs/web72:/var/log/nginx/web72
- ./logs/nginx_logs/webubuntu71:/var/log/nginx/webubuntu71
- ./logs/nginx_logs/webubuntu74:/var/log/nginx/webubuntu74
- ./logs/nginx_logs/phpmyadmin:/var/log/nginx/phpmyadmin
- ./logs/nginx_logs/rabbitmq:/var/log/nginx/rabbitmq
- /etc/localtime:/etc/localtime
privileged: true
networks:
ohrmdevnet:
ipv4_address: 10.5.2.1
restart: always
container_name: dev_nginx
web74:
image: orangehrm/orangehrm-environment-images:dev-7.4-centos-orange
volumes:
- ./html:/var/www/html
- ./config/web74/php/custom_php.ini:/etc/php.d/custom_php.ini
- ./config/web74/mysql-client:/etc/mysql
- ./config/web74/apache2/sites-available:/etc/httpd/sites-available
- ./config/web74/apache2/sites-enabled:/etc/httpd/sites-enabled
- ./config/web74/apache2/conf.d/ssl.conf:/etc/httpd/conf.d/ssl.conf
- ./config/web74/apache2/cert:/etc/httpd/cert
- ./logs/apache_logs/web74:/var/log/httpd
- /etc/localtime:/etc/localtime
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
sysctls:
- kernel.shmmax=67371264
networks:
ohrmdevnet:
ipv4_address: 10.5.0.74
restart: always
container_name: dev_web_74
web_74_rh:
image: orangehrm/orangehrm-environment-images:dev-php-latest-rhel-8
volumes:
- ./html:/var/www/html
- ./config/web74rh/php/custom_php.ini:/etc/php.d/custom_php.ini
- ./config/web74rh/mysql-client:/etc/mysql
- ./config/web74rh/apache2/sites-available:/etc/httpd/sites-available
- ./config/web74rh/apache2/sites-enabled:/etc/httpd/sites-enabled
- ./config/web74rh/apache2/conf.d/ssl.conf:/etc/httpd/conf.d/ssl.conf
- ./config/web74rh/apache2/cert:/etc/httpd/cert
- ./logs/apache_logs/web74rh:/var/log/httpd
- /etc/localtime:/etc/localtime
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
sysctls:
- kernel.shmmax=67371264
networks:
ohrmdevnet:
ipv4_address: 10.5.0.174
restart: always
container_name: dev_web_74_rh
db10422:
image: orangehrm/orangehrm-db-images:mariadb-10.4.22-redhat-8.4
expose:
- "3306"
volumes:
- /etc/localtime:/etc/localtime
- mariadb10422:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 1234
networks:
ohrmdevnet:
ipv4_address: 10.5.1.122
restart: always
container_name: dev_mariadb_10422
phpmyadmin:
image: phpmyadmin/phpmyadmin
volumes:
- /etc/localtime:/etc/localtime
environment:
PMA_HOSTS: db10422
networks:
ohrmdevnet:
ipv4_address: 10.5.2.2
restart: always
container_name: dev_phpmyadmin
rabbitmq:
image: orangehrm/orangehrm-rabbitmq:3.8.4-management
container_name: dev_rabbitmq
volumes:
- ./config/rabbitmq/certs:/cert_rabbitmq/
environment:
RABBITMQ_SSL_CERTFILE: /cert_rabbitmq/cert.pem
RABBITMQ_SSL_KEYFILE: /cert_rabbitmq/key.pem
RABBITMQ_SSL_CACERTFILE: /cert_rabbitmq/cacert.pem
RABBITMQ_SSL_FAIL_IF_NO_PEER_CERT: 'false'
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: '-rabbit ssl_listeners [{"::",5671}] -rabbit ssl_options [{certfile,"/cert_rabbitmq/cert.pem"},{keyfile,"/cert_rabbitmq/key.pem"},{cacertfile,"/cert_rabbitmq/cacert.pem"},{verify,verify_peer},{depth,3},{fail_if_no_peer_cert,false}] -rabbit tcp_listeners [{"::",5672}]'
ports:
- "15671:15671"
- "5672:5672"
- "5671:5671"
restart: always
networks:
ohrmdevnet:
ipv4_address: 10.5.2.3
rabbitmq_rhel:
image: orangehrm/orangehrm-rabbitmq:rabbitmq-3.9.8-redhat-8.4
container_name: dev_rabbitmq_rhel
ports:
- "18671:15671"
- "8671:5671"
volumes:
- ./config/rabbitmq_398_rhel/certs:/cert_rabbitmq/
- ./config/rabbitmq_398_rhel/conf:/etc/rabbitmq
networks:
ohrmdevnet:
ipv4_address: 10.5.2.6
restart: always
hostname: dev-rabbitmq-rhel
volumes:
mariadb10422:
networks:
ohrmdevnet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1