API
Deploy on Web
Getting Started
Help
Installation Guides
Single Instance
Getting Started with Docker
Docker
We'll use cezerin/cezerin
image.
About image.
- Run MongoDB
docker run --name store-db -v /var/www/store-db:/data/db -d mongo:latest
- Run Cezerin
docker run -d \--name store \--link store-db:db \-p 80:80 \-e DB_HOST=db \-e DB_PORT=27017 \-e DB_NAME=shop \-e DB_USER=user \-e DB_PASS=password \-v /var/www/store:/var/www/cezerin \cezerin/cezerin:latest
Open http://localhost to see your store. Dashboard - http://localhost/admin API - http://localhost
Docker Compose
Create docker-compose.yml
by examples.
version: "3"services:app:image: cezerin/cezerinenvironment:- DB_HOST=db- DB_PORT=27017- DB_NAME=shop- DB_USER=- DB_PASS=ports:- 4000:80volumes:- /var/www/store:/var/www/cezerindepends_on:- dbrestart: alwaysdb:image: mongoports:- 27017volumes:- /var/www/store-db:/data/dbrestart: always
/var/www/store
- folder with Cezerin
/var/www/store-db
- folder with MongoDB data