https://github.com/ulbora/docker_ulboracms_mongo
MongoDB image for Ulbora CMS
https://github.com/ulbora/docker_ulboracms_mongo
Last synced: about 1 month ago
JSON representation
MongoDB image for Ulbora CMS
- Host: GitHub
- URL: https://github.com/ulbora/docker_ulboracms_mongo
- Owner: Ulbora
- Created: 2016-03-07T01:11:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T17:29:06.000Z (about 9 years ago)
- Last Synced: 2025-01-26T13:22:33.551Z (3 months ago)
- Language: Shell
- Size: 400 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Ulbora Mongo
- 1.0.0, latest[ (Dockerfile)](https://github.com/Ulbora/docker_ulboracms_mongo/blob/master/Dockerfile)This is Docker Ulbora Mongo running on Debian
# Running
```
docker run -v /data/db:/data/db -v /databackup:/databackup --name \
ulboramongo -d ulboralabs/ulboracms-mongo
```### Then run the database restore script
```
docker exec -it ulboramongo bash /db.sh
```
If you restore this database, log in with:
user=admin
password=admin
Make sure to change the password as soon as you finish the installation.
#### Default credential on a new installation:
user=admin
password=admin
Make sure to change the password as soon as you finish the installation.# Linking to a mongo container
### The link to your mongodb container should always end with :mongo as shown below```
docker run --name some-ulboracms-web-app \
--link some-mongodb-container-name:mongo --env DOCKER_ULBORACMS_DATABASE_NAME=ulboracmsdb -d ulboralabs/ulboracms sh
```# About linking to a mongo container
The :mongo is an alias that produces an environment variable named MONGO_PORT_27017_TCP_ADDR inside the web container.
If :mongo were to be changed to :mongodb, then the environment variable would be named MONGODB_PORT_27017_TCP_ADDR and
Ulbora CMS would not connect the the mongo database. Ulbora CMS needs the environment variable to be
named MONGO_PORT_27017_TCP_ADDR.Also notice that we do not start the mongo container and expose port 27017 by using -p 27017:27017.
Doing so would expose the container outside of Docker and would require additional security.
If you start the mongo container with -p 27017:27017, make sure to follow the Docker guidelines on securing
the container.# Connect to running instance
```
docker exec -it ulboralabs/ulboracms-mongodb bash
```