0.33.0
,latest
(0.33.0/Dockerfile)
VamShop is React and Node.js based eCommerce platform.
- port: 4000
docker run -d \
--name store \
-p 4000:80 \
vamshop/vamshop:latest
- port: 4000
- MongoDB connection
docker run -d \
--name store \
-p 4000:80 \
-e DB_HOST=255.255.255.255 \
-e DB_PORT=27017 \
-e DB_NAME=shop \
-e DB_USER=user \
-e DB_PASS=password \
vamshop/vamshop:latest
- port: 4000
- MongoDB connection
- use volume
docker run -d \
--name store \
-p 4000:80 \
-e DB_HOST=255.255.255.255 \
-e DB_PORT=27017 \
-e DB_NAME=shop \
-e DB_USER=user \
-e DB_PASS=password \
-v /var/www/vamshop-on-host:/var/www/vamshop \
vamshop/vamshop:latest
Name | Description | Default |
---|---|---|
DB_HOST |
MongoDB host name or IP | 127.0.0.1 |
DB_PORT |
MongoDB server port | 27017 |
DB_NAME |
MongoDB database name | shop |
DB_USER |
MongoDB user name | |
DB_PASS |
MongoDB user password |
- Node.js (8.10) to run API on port 3001 and Store (Server-Side Rendering) on port 3000.
- Nginx (1.12.2) as a reverse proxy to Node.js and dynamic image thumbnails. Port 80.