-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1 KB
/
docker-compose.yml
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
39
40
41
42
43
44
45
46
47
48
49
version: '3.2'
services:
jenkins:
user: root
image: jenkinsci/blueocean:latest
ports:
- "50000:50000"
- "8080:8080"
volumes:
- type: volume
source: jenkins_home
target: /var/jenkins_home
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
nginx:
build:
context: nginx
args:
PUBLIC_HOSTNAME: $PUBLIC_HOSTNAME
ports:
- "80:80"
- "443:443"
volumes:
- type: volume
source: certs
target: /etc/letsencrypt
- type: volume
source: webroot
target: /usr/share/nginx/html
certbot:
build:
context: certbot
args:
PUBLIC_HOSTNAME: $PUBLIC_HOSTNAME
EMAIL_ADDRESS: $EMAIL_ADDRESS
depends_on:
- nginx
volumes:
- type: volume
source: certs
target: /etc/letsencrypt
- type: volume
source: webroot
target: /usr/share/nginx/html
volumes:
jenkins_home:
certs:
webroot: