Skip to content

Commit 93f4b79

Browse files
committed
Readme
1 parent d9364f7 commit 93f4b79

File tree

1 file changed

+50
-5
lines changed

1 file changed

+50
-5
lines changed

README.md

+50-5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,50 @@ services:
2222
- mysql:/var/lib/mysql
2323
2424
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
2569
image: espocrm/espocrm
2670
environment:
2771
ESPOCRM_DATABASE_PASSWORD: example
@@ -48,7 +92,7 @@ volumes:
4892

4993
### Usage (only for development)
5094

51-
Example `stack.yml`:
95+
Example `docker-compose.yml`:
5296

5397
```
5498
version: '3.1'
@@ -66,6 +110,7 @@ services:
66110
- mysql:/var/lib/mysql
67111
68112
espocrm:
113+
container_name: espocrm
69114
build:
70115
context: ./apache
71116
dockerfile: Dockerfile
@@ -80,22 +125,22 @@ services:
80125
volumes:
81126
- espocrm:/var/www/html
82127
83-
espocrm-cron:
84-
container_name: espocrm-cron
128+
espocrm-daemon:
129+
container_name: espocrm-daemon
85130
build:
86131
context: ./apache
87132
dockerfile: Dockerfile
88133
volumes:
89134
- espocrm:/var/www/html
90135
restart: always
91-
entrypoint: docker-cron.sh
136+
entrypoint: docker-daemon.sh
92137
93138
volumes:
94139
mysql:
95140
espocrm:
96141
```
97142

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`.
99144

100145
### Documentation
101146

0 commit comments

Comments
 (0)