-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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) |