-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose-production.yml
44 lines (41 loc) · 1.13 KB
/
docker-compose-production.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
version: '3.7'
services:
nginx:
image: nginx:alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/www/html:/var/www/html:ro
- ./docker/production/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- jenkins
jenkins:
build:
context: ./docker/common/jenkins
restart: always
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
volumes:
- jenkins-data:/var/jenkins_home
- docker-certs:/certs/client:ro
depends_on:
- docker
docker:
image: docker:dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: /certs
volumes:
- /etc/docker/dind-daemon.json:/etc/docker/daemon.json:ro
- jenkins-data:/var/jenkins_home
- docker-certs:/certs/client
- docker-data:/var/lib/docker
volumes:
jenkins-data:
docker-certs:
docker-data: