Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tmachyshyn committed Jul 28, 2021
1 parent d9364f7 commit 93f4b79
Showing 1 changed file with 50 additions and 5 deletions.
55 changes: 50 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,50 @@ services:
- mysql:/var/lib/mysql
espocrm:
container_name: espocrm
image: espocrm/espocrm
environment:
ESPOCRM_DATABASE_PASSWORD: example
ESPOCRM_ADMIN_USERNAME: admin
ESPOCRM_ADMIN_PASSWORD: password
ESPOCRM_SITE_URL: "http://localhost:8080"
restart: always
ports:
- 8080:80
volumes:
- espocrm:/var/www/html
espocrm-daemon:
image: espocrm/espocrm
volumes:
- espocrm:/var/www/html
restart: always
entrypoint: docker-daemon.sh
volumes:
mysql:
espocrm:
```

### Legacy Usage (EspoCRM v6.1.7 and earlier)

```
version: '3.1'
services:
mysql:
container_name: mysql
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- mysql:/var/lib/mysql
espocrm:
container_name: espocrm
image: espocrm/espocrm
environment:
ESPOCRM_DATABASE_PASSWORD: example
Expand All @@ -48,7 +92,7 @@ volumes:

### Usage (only for development)

Example `stack.yml`:
Example `docker-compose.yml`:

```
version: '3.1'
Expand All @@ -66,6 +110,7 @@ services:
- mysql:/var/lib/mysql
espocrm:
container_name: espocrm
build:
context: ./apache
dockerfile: Dockerfile
Expand All @@ -80,22 +125,22 @@ services:
volumes:
- espocrm:/var/www/html
espocrm-cron:
container_name: espocrm-cron
espocrm-daemon:
container_name: espocrm-daemon
build:
context: ./apache
dockerfile: Dockerfile
volumes:
- espocrm:/var/www/html
restart: always
entrypoint: docker-cron.sh
entrypoint: docker-daemon.sh
volumes:
mysql:
espocrm:
```

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`.
Run `docker-compose up -d`, wait for it to initialize completely, and visit `http://localhost:8080`.

### Documentation

Expand Down

0 comments on commit 93f4b79

Please sign in to comment.