forked from podverse/podverse-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
118 lines (111 loc) · 2.75 KB
/
docker-compose.ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3"
services:
podverse_nginx_proxy:
image: jwilder/nginx-proxy
container_name: podverse_nginx_proxy_ci
ports:
- 80:80
- 443:443
volumes:
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /home/user/tools/nginx_webproxy/certificats:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./prod-proxy.conf:/etc/nginx/vhost.d/default_location:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
networks:
- nginx-proxy
environment:
ENABLE_IPV6: "true"
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
podverse_letsencrypt_nginx:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: podverse_letsencrypt_nginx_ci
depends_on:
- podverse_nginx_proxy
volumes:
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /home/user/tools/nginx_webproxy/certificats:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- nginx-proxy
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
podverse_jenkins_docker:
image: docker:dind
container_name: podverse_jenkins_docker
privileged: true
depends_on:
- podverse_nginx_proxy
ports:
- 3000:3000
volumes:
- jenkins-docker-certs:/certs/client
- jenkins-data:/var/jenkins_home
- $HOME:/home
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- nginx-proxy
environment:
DOCKER_TLS_CERTDIR: "/certs"
environment:
VIRTUAL_HOST:
VIRTUAL_PORT: 3000
LETSENCRYPT_HOST:
LETSENCRYPT_EMAIL:
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
podverse_jenkins_admin:
image: jenkins/jenkins:lts
container_name: podverse_jenkins_admin
privileged: true
restart: always
depends_on:
- podverse_nginx_proxy
networks:
- nginx-proxy
environment:
DOCKER_HOST: "tcp://docker:2376"
DOCKER_CERT_PATH: "/certs/client"
DOCKER_TLS_VERIFY: 1
volumes:
- jenkins-data:/var/jenkins_home
- jenkins-docker-certs:/certs/client:ro
- $HOME:/home
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
JENKINS_OPTS: "--httpPort=8100"
VIRTUAL_HOST:
VIRTUAL_PORT: 8100
LETSENCRYPT_HOST:
LETSENCRYPT_EMAIL:
expose:
- 80
- 8100
ports:
- 8100:8080
logging:
driver: "json-file"
options:
max-file: "1"
max-size: "50m"
networks:
nginx-proxy:
external: true
volumes:
vhost:
html:
jenkins-docker-certs:
jenkins-data: