This template provides a docker-compose file that builds the following services in seperate containers.
- Jenkins
- Express (Node)
- NextJS (Node)
- Postgres
The following ports are exposed when the containers are built
PORT | SERVICE |
---|---|
8080 | Jenkins |
1337 | Express |
80 | NextJS |
5432 | Postgres |
This template requires the following postgres ENV to be completed in the file pg.env
to build properly
POSTGRES_PASSWORD
POSTGRES_USER
POSTGRES_DB
docker run \
-u root \
--rm \
-it \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean
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