Add jenkins service to docker-compose.yml
This commit is contained in:
@@ -100,9 +100,29 @@ services:
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
jenkins:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: _docker/jenkins/Dockerfile
|
||||
container_name: ntspi-jenkins
|
||||
restart: always
|
||||
user: root
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- jenkins_data:/var/jenkins_home
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./:/var/www
|
||||
environment:
|
||||
- DOCKER_HOST=unix:///var/run/docker.sock
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
volumes:
|
||||
cache:
|
||||
driver: local
|
||||
jenkins_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
|
||||
Reference in New Issue
Block a user