@@ -22,6 +22,50 @@ services:
22
22
- mysql:/var/lib/mysql
23
23
24
24
espocrm:
25
+ container_name: espocrm
26
+ image: espocrm/espocrm
27
+ environment:
28
+ ESPOCRM_DATABASE_PASSWORD: example
29
+ ESPOCRM_ADMIN_USERNAME: admin
30
+ ESPOCRM_ADMIN_PASSWORD: password
31
+ ESPOCRM_SITE_URL: "http://localhost:8080"
32
+ restart: always
33
+ ports:
34
+ - 8080:80
35
+ volumes:
36
+ - espocrm:/var/www/html
37
+
38
+ espocrm-daemon:
39
+ image: espocrm/espocrm
40
+ volumes:
41
+ - espocrm:/var/www/html
42
+ restart: always
43
+ entrypoint: docker-daemon.sh
44
+
45
+ volumes:
46
+ mysql:
47
+ espocrm:
48
+ ```
49
+
50
+ ### Legacy Usage (EspoCRM v6.1.7 and earlier)
51
+
52
+ ```
53
+ version: '3.1'
54
+
55
+ services:
56
+
57
+ mysql:
58
+ container_name: mysql
59
+ image: mysql:8
60
+ command: --default-authentication-plugin=mysql_native_password
61
+ restart: always
62
+ environment:
63
+ MYSQL_ROOT_PASSWORD: example
64
+ volumes:
65
+ - mysql:/var/lib/mysql
66
+
67
+ espocrm:
68
+ container_name: espocrm
25
69
image: espocrm/espocrm
26
70
environment:
27
71
ESPOCRM_DATABASE_PASSWORD: example
@@ -48,7 +92,7 @@ volumes:
48
92
49
93
### Usage (only for development)
50
94
51
- Example ` stack .yml` :
95
+ Example ` docker-compose .yml` :
52
96
53
97
```
54
98
version: '3.1'
@@ -66,6 +110,7 @@ services:
66
110
- mysql:/var/lib/mysql
67
111
68
112
espocrm:
113
+ container_name: espocrm
69
114
build:
70
115
context: ./apache
71
116
dockerfile: Dockerfile
@@ -80,22 +125,22 @@ services:
80
125
volumes:
81
126
- espocrm:/var/www/html
82
127
83
- espocrm-cron :
84
- container_name: espocrm-cron
128
+ espocrm-daemon :
129
+ container_name: espocrm-daemon
85
130
build:
86
131
context: ./apache
87
132
dockerfile: Dockerfile
88
133
volumes:
89
134
- espocrm:/var/www/html
90
135
restart: always
91
- entrypoint: docker-cron .sh
136
+ entrypoint: docker-daemon .sh
92
137
93
138
volumes:
94
139
mysql:
95
140
espocrm:
96
141
```
97
142
98
- Run ` docker stack deploy -c stack.yml espocrm ` (or ` docker- compose -f stack.yml up ` ) , wait for it to initialize completely, and visit ` http://localhost:8080 ` .
143
+ Run ` docker- compose up -d ` , wait for it to initialize completely, and visit ` http://localhost:8080 ` .
99
144
100
145
### Documentation
101
146
0 commit comments