Skip to content

Commit

Permalink
Docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vamcart committed Dec 20, 2019
1 parent fd73ffa commit 8c85b9b
Showing 1 changed file with 65 additions and 65 deletions.
130 changes: 65 additions & 65 deletions docs/using-docker.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,7 @@
### Using Docker

* [Docker](#docker)
* [Docker Compose](#docker-compose)

### Docker

- **Run MongoDB**
```shell
docker run -d \
--name store-db \
-v /db-on-host:/data/db \
mongo:3.6
```

- **Run Cezerin2** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2/README.md).
```shell
docker run -d \
--name cezerin2 \
--link store-db:db \
-p 3001:80 \
-e DB_HOST=db \
-e DB_PORT=27017 \
-e DB_NAME=shop \
-e DB_USER= \
-e DB_PASS= \
-v /content-on-host:/var/www/cezerin2/public/content \
cezerin2/cezerin2:latest
```

- **Run Cezerin2 Admin** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2-admin/README.md).
```shell
docker run -d \
--name cezerin2-admin \
--link cezerin2:cezerin2 \
-p 3002:80 \
cezerin2/cezerin2-admin:latest
```

- **Run Cezerin2 Store** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2-store/README.md).
```shell
docker run -d \
--name cezerin2-store \
--link cezerin2:cezerin2 \
-p 3000:80 \
-e API_BASE_URL=http://cezerin2/api/v1 \
-e AJAX_BASE_URL=http://cezerin2/ajax \
cezerin2/cezerin2-store:latest
```

- **Upload default store data (sample products, categories, email templates, settings etc...) to the database**
```shell
docker exec cezerin2 bash -c "npm run setup [email protected] http://localhost:3000"
```

- **Open Cezerin2**

| Application | Repo | URL |
| --- | --- | --- |
| `Store` | cezerin2-store | [http://localhost:3000](http://localhost:3000) |
| `Api` | cezerin2 | [http://localhost:3001](http://localhost:3001) |
| `Admin` | cezerin2-admin | [http://localhost:3002](http://localhost:3002) |

Youtube video: **Cezerin Installation Manual. Docker.**

[![Cezerin Installation Manual. Docker.
](https://img.youtube.com/vi/ADvr2OqqB9Y/0.jpg)](https://youtu.be/ADvr2OqqB9Y)
* [Docker](#docker)

### Docker Compose

Expand Down Expand Up @@ -145,4 +82,67 @@ services:
Youtube video: **Cezerin Installation Manual. Docker Compose.**

[![Cezerin Installation Manual. Docker Compose.
](https://img.youtube.com/vi/xZ0XUrobaMg/0.jpg)](https://youtu.be/xZ0XUrobaMg)
](https://img.youtube.com/vi/xZ0XUrobaMg/0.jpg)](https://youtu.be/xZ0XUrobaMg)

### Docker

- **Run MongoDB**
```shell
docker run -d \
--name store-db \
-v /db-on-host:/data/db \
mongo:3.6
```

- **Run Cezerin2** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2/README.md).
```shell
docker run -d \
--name cezerin2 \
--link store-db:db \
-p 3001:80 \
-e DB_HOST=db \
-e DB_PORT=27017 \
-e DB_NAME=shop \
-e DB_USER= \
-e DB_PASS= \
-v /content-on-host:/var/www/cezerin2/public/content \
cezerin2/cezerin2:latest
```

- **Run Cezerin2 Admin** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2-admin/README.md).
```shell
docker run -d \
--name cezerin2-admin \
--link cezerin2:cezerin2 \
-p 3002:80 \
cezerin2/cezerin2-admin:latest
```

- **Run Cezerin2 Store** [About image](https://github.com/Cezerin2/docker-cezerin2/blob/master/cezerin2-store/README.md).
```shell
docker run -d \
--name cezerin2-store \
--link cezerin2:cezerin2 \
-p 3000:80 \
-e API_BASE_URL=http://cezerin2/api/v1 \
-e AJAX_BASE_URL=http://cezerin2/ajax \
cezerin2/cezerin2-store:latest
```

- **Upload default store data (sample products, categories, email templates, settings etc...) to the database**
```shell
docker exec cezerin2 bash -c "npm run setup [email protected] http://localhost:3000"
```

- **Open Cezerin2**

| Application | Repo | URL |
| --- | --- | --- |
| `Store` | cezerin2-store | [http://localhost:3000](http://localhost:3000) |
| `Api` | cezerin2 | [http://localhost:3001](http://localhost:3001) |
| `Admin` | cezerin2-admin | [http://localhost:3002](http://localhost:3002) |

Youtube video: **Cezerin Installation Manual. Docker.**

[![Cezerin Installation Manual. Docker.
](https://img.youtube.com/vi/ADvr2OqqB9Y/0.jpg)](https://youtu.be/ADvr2OqqB9Y)

0 comments on commit 8c85b9b

Please sign in to comment.