-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.77 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
version: '3.5'
networks:
reverse-proxy:
external:
name: ${REVERSE_PROXY_NETWORK}
services:
portainer:
container_name: portainer
image: portainer/portainer:${PORTAINER_VERSION}
restart: always
command: --no-auth -H unix:///var/run/docker.sock
volumes:
- ${DOCKER_SOCKET_FILE}:/var/run/docker.sock
networks:
- reverse-proxy
labels:
- traefik.enable=true
- traefik.http.routers.portainer.rule=Host(`portainer.${BASE_DOMAIN}`)
- traefik.http.routers.portainer.entryPoints=http,https
traefik:
container_name: traefik
image: id0ne/traefik
build:
context: docker/traefik
args:
FROM_IMAGE: traefik:${TRAEFIK_VERSION}
restart: always
networks:
- reverse-proxy
volumes:
- ${DOCKER_SOCKET_FILE}:/var/run/docker.sock
- ${TRAEFIK_SSL_CERT_FILE}:/etc/traefik/ssl/cert.pem
- ${TRAEFIK_SSL_KEY_FILE}:/etc/traefik/ssl/key.pem
labels:
- traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`traefik.${BASE_DOMAIN}`)
- traefik.http.routers.traefik.service=api@internal
- traefik.http.routers.traefik.entryPoints=http,https
ports:
- ${HTTP_PORT}:80
- ${HTTPS_PORT}:443
sonarqube:
container_name: sonarqube
image: sonarqube:${SONARQUBE_VERSION}
restart: always
networks:
- reverse-proxy
labels:
- traefik.enable=true
- traefik.http.routers.sonarqube.rule=Host(`sonarqube.${BASE_DOMAIN}`)
- traefik.http.routers.sonarqube.entryPoints=http,https