-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 858 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
user: root
ports:
- "9090:8080"
- "50000:50000"
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- dind
dind:
image: docker:24-dind
privileged: true
container_name: dind
environment:
DOCKER_TLS_CERTDIR: ""
ports:
- "2375:2375" # <--- must be array like this, not string
volumes:
- dind-storage:/var/lib/docker
web:
build:
context: .
dockerfile: Dockerfile
image: devsecops:${BUILD_NUMBER}
environment:
- NODE_ENV=production
- PORT=3000
ports:
- "18081:3000" # published on DinD; Jenkins can reach it at http://dind:18081
restart: unless-stopped
volumes:
jenkins_home:
dind-storage: