aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docker-compose-sonar.yml
blob: 1984905461c7b438be6dbc223b6edc189c2af631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: "3"
services:
  sonar:
    build:
      context: ../
      dockerfile: scripts/Dockerfile.sonarcloud
    container_name: sonarcloud
    hostname: sonarcloud
    environment:
      API_TOKEN: $API_TOKEN
      SONAR_HOST_URL: $SONAR_HOST_URL
      PROJECT_KEY: $PROJECT_KEY
      PROJECT_ORGANIZATION: $PROJECT_ORGANIZATION
    volumes:
      - ..:/workspace:z
    command:
      - |
        /workspace/scripts/run-sonar.sh