- docker-compose.yml About image.
- Download docker-compose.yml
version: '3'
services:
cezerin2:
image: cezerin2/cezerin2
ports:
- 3001:80
environment:
- DB_HOST=db
- DB_PORT=27017
- DB_NAME=shop
- DB_USER=
- DB_PASS=
volumes:
- ./content-on-host:/var/www/cezerin2/public/content
depends_on:
- db
restart: always
cezerin2-store:
image: cezerin2/cezerin2-store
environment:
- API_BASE_URL=http://cezerin2/api/v1
- AJAX_BASE_URL=http://cezerin2/ajax
ports:
- 3000:80
depends_on:
- cezerin2
restart: always
admin:
image: cezerin2/cezerin2-admin
ports:
- 3002:80
depends_on:
- cezerin2
restart: always
db:
image: mongo:3.6
ports:
- 27017:27017
volumes:
- ./db-on-host:/data/db
restart: always
- Start containers with docker-compose command
docker-compose up -d
- Upload default store data (sample products, categories, email templates, settings etc...) to the database
docker exec cezerin_cezerin2_1 bash -c "npm run setup [email protected] http://localhost:3000"
- Open Cezerin2
Application | Repo | URL |
---|---|---|
Store |
cezerin2-store | http://localhost:3000 |
Api |
cezerin2 | http://localhost:3001 |
Admin |
cezerin2-admin | http://localhost:3002 |
Youtube video: Cezerin Installation Manual. Docker Compose.
- Run MongoDB
docker run -d \
--name store-db \
-v /db-on-host:/data/db \
mongo:3.6
- Run Cezerin2 About image.
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.
docker run -d \
--name cezerin2-admin \
--link cezerin2:cezerin2 \
-p 3002:80 \
cezerin2/cezerin2-admin:latest
- Run Cezerin2 Store About image.
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
docker exec cezerin2 bash -c "npm run setup [email protected] http://localhost:3000"
- Open Cezerin2
Application | Repo | URL |
---|---|---|
Store |
cezerin2-store | http://localhost:3000 |
Api |
cezerin2 | http://localhost:3001 |
Admin |
cezerin2-admin | http://localhost:3002 |
Youtube video: Cezerin Installation Manual. Docker.