-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (35 loc) · 977 Bytes
/
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
version: '3.7'
services:
sonarqube:
image: sonarqube:community
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: true
ulimits:
nproc: 131072
nofile:
soft: 8192
hard: 131072
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs
expose:
- 9000
networks:
- dokploy-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.${HASH}.entrypoints=websecure"
- "traefik.http.routers.${HASH}.tls.certResolver=letsencrypt"
- "traefik.http.routers.${HASH}.rule=Host(`${SONARQUBE_HOST}`)"
- "traefik.http.services.${HASH}.loadbalancer.server.port=9000"
volumes:
sonarqube_data:
sonarqube_extensions:
sonarqube_logs:
networks:
dokploy-network:
external: true