Skip to content

Commit

Permalink
Added snippet to run monitoring container
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBrack committed Jul 8, 2019
1 parent a45a9dc commit 08faaa0
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,49 @@

This template provides a docker-compose file that builds the following services in seperate containers.

* Jenkins
* Express (Node)
* NextJS (Node)
* Postgres
- Jenkins
- Express (Node)
- NextJS (Node)
- Postgres

_____
---

## PORTS

The following ports are exposed when the containers are built

| PORT | SERVICE |
|------|----------|
| ---- | -------- |
| 8080 | Jenkins |
| 1337 | Express |
| 80 | NextJS |
| 5432 | Postgres |

_____
---

## ENVIRONMENT

This template requires the following postgres ENV to be completed in the file `pg.env` to build properly

### __pg.env__
### **pg.env**

POSTGRES_PASSWORD

POSTGRES_USER

POSTGRES_DB
POSTGRES_DB

## Monitoring with cAdvisor

```
sudo docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/dev/disk/:/dev/disk:ro \
--publish=8081:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor:latest
```

0 comments on commit 08faaa0

Please sign in to comment.