-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (67 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
proxy:
image: traefik:v2.2
networks:
- webgateway
- logging
environment:
- DO_AUTH_TOKEN
- CF_DNS_API_TOKEN
ports:
- "80:80"
- "443:443"
- "10022:10022"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml
- ./acme:/etc/traefik/acme
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async-connect: 'true'
fluentd-retry-wait: '1s'
fluentd-max-retries: '30'
tag: traefik
labels:
traefik.enable: "true"
traefik.http.routers.traefik.rule: "Host(`proxy.khayyam.me`)"
traefik.http.routers.traefik.service: "api@internal"
traefik.http.routers.traefik.middlewares: auth
traefik.http.routers.traefik.entrypoints: https
traefik.http.middlewares.auth.basicauth.users: $HTTP_AUTH
restart: unless-stopped
jenkins:
build:
context: .
dockerfile: jind.dockerfile
networks:
- webgateway
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async-connect: 'true'
fluentd-retry-wait: '1s'
fluentd-max-retries: '30'
tag: jenkins
user: root
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jenkins_home:/var/jenkins_home
labels:
traefik.enable: "true"
traefik.http.routers.jenkins.rule: "Host(`build.khayyam.me`)"
traefik.http.routers.jenkins.entrypoints: https
traefik.docker.network: "server_webgateway"
restart: unless-stopped
networks:
webgateway:
driver: bridge
logging:
external:
name: logging_logging
volumes:
jenkins_home: