Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polonel/trudesk-docker
Trudesk docker builder
https://github.com/polonel/trudesk-docker
Last synced: about 1 month ago
JSON representation
Trudesk docker builder
- Host: GitHub
- URL: https://github.com/polonel/trudesk-docker
- Owner: polonel
- Created: 2019-01-03T01:17:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-24T22:53:47.000Z (5 months ago)
- Last Synced: 2024-07-25T01:03:58.586Z (5 months ago)
- Homepage:
- Size: 14.3 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![](https://docs.trudesk.io/TD_Black500.png)
***
## Docker Install
The below example shows running a `MongoDB` container and linking it to a trudesk container.> *Note: In this example all container storage is located on the host.
> In order to run trudesk in a multi-host container cluster, you will require a shared storage. (ex: NFS)*#### Storage - Create directories on host
``` bash
$ mkdir -p /data/db
$ mkdir -p /data/configdb
$ mkdir -p /data/trudesk/plugins
$ mkdir -p /data/trudesk/uploads
```#### MongoDB Container
The following command will deploy a `mongodb 5` docker container with the name `mongodb`, which we will use to link to our `trudesk` container.
``` bash
$ docker run --name mongodb \
-v /data/db:/data/db \
-v /data/configdb:/data/configdb \
-d mongo:5.0
```#### Trudesk Container
The following command will deploy a `trudesk 1.2` docker container. The container will expose a `NodePort` to access the container.Get latest updated image of `1.2`
``` bash
$ docker pull polonel/trudesk:1.2
`````` bash
$ docker run --name trudesk --link mongodb:mongodb \
-v /data/trudesk/uploads:/usr/src/trudesk/public/uploads \
-v /data/trudesk/plugins:/usr/src/trudesk/plugins \
-v /data/trudesk/backups:/usr/src/trudesk/backups \
-e NODE_ENV=production \
-e TRUDESK_DOCKER=true \
-e TD_MONGODB_SERVER=mongodb -e TD_MONGODB_DATABASE=trudesk \
-P -d polonel/trudesk:$TAG
```#### Accessing the trudesk container
Once the containers are running, access the trudesk container via the assigned `NodePort`.
The following command will list the two running containers. Notice under the ports column
the NodePort - __32772__. This will allow access to the trudesk container via `http://{hostip}:32772```` bash
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5f75716aa8cc polonel/trudesk:1.2 "/bin/bash /usr/src/…" 1 minute ago Up 1 minute 0.0.0.0:32772->8118/tcp trudesk
5b4f77cbf1a3 mongo:5.0 "docker-entrypoint.s…" 32 minutes ago Up 32 minutes 27017/tcp mongodb
```