-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 952 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
39
40
41
42
43
44
45
46
47
jenkins:
image: autopilotpattern/jenkins
restart: always
mem_limit: 8g
ports:
- 8000
- 22
labels:
- triton.cns.services=jenkins
env_file: _env
# reverse proxy for protecting Jenkins w/ TLS
nginx:
image: autopilotpattern/jenkins-nginx
restart: always
mem_limit: 256m
environment:
- BACKEND=jenkins
- CONSUL_AGENT=1
- ACME_ENV=
- ACME_DOMAIN=
env_file: _env
labels:
- triton.cns.services=jenkins-nginx
ports:
- 80
- 443
- 9090
# Start with a single host which will bootstrap the cluster.
# In production we'll want to use an HA cluster.
consul:
image: progrium/consul:latest
restart: always
mem_limit: 128m
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
dns:
- 127.0.0.1
labels:
- triton.cns.services=jenkins-consul
command: -server -bootstrap -ui-dir /ui