-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.docker-compose.yml
62 lines (59 loc) · 1.63 KB
/
dev.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
version: '3.3'
services:
mysqldb:
env_file:
- .env
image: mysql:5.7
container_name: devCrmMysql
ports:
- 3364:3306
environment:
MYSQL_ROOT_PASSWORD: ${mysql_root_passwd}
MYSQL_USER: ${mysql_user}
MYSQL_PASSWORD: ${mysql_passwd}
MYSQL_DATABASE: ${mysql_db}
volumes:
- mysql-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
links:
- mysqldb:mysql
container_name: devCrmMyadmin
environment:
- PMA_ARBITRARY=1
restart: always
webserver:
container_name: devCrmServer
image: crm-webapp:1.0.0
build:
context: .
dockerfile: dockerfiles/project1/Dockerfile
args:
VERSION: ${espo}
ports:
- 8088:80
volumes:
- ./espocrm:/crm/espocrm
- ./projects/project1/application:/crm/espocrm/custom
- ./projects/project1/client/custom:/crm/espocrm/client/custom
- ./addons/PM-Extension/files/application/Espo/Modules/PM:/crm/espocrm/application/Espo/Modules/PM
# - ./addons/PM-Extension/files/client/modules/pm:/crm/espocrm/client/modules/pm
- ./tests:/crm/espocrm/tests
- ./etc/nginx/conf.d/espocrm.conf:/etc/nginx/conf.d/default.conf:ro
environment:
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html
DB_HOST: ${mysql_host}
DB_USER: ${mysql_user}
DB_PASSWORD: ${mysql_passwd}
DB_NAME: ${mysql_db}
DB_DRIVER: mysqldb:mysql
links:
- mysqldb:mysql
command: "nginx -g 'daemon off;'"
volumes:
mysql-data: