mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
fix: add support for apple m1 chips and move db before sonarqube
This commit is contained in:
parent
dcfe770414
commit
033ecf1a03
1 changed files with 15 additions and 10 deletions
|
@ -63,6 +63,17 @@ services:
|
|||
depends_on:
|
||||
- petclinic
|
||||
|
||||
db:
|
||||
image: postgres:12
|
||||
environment:
|
||||
POSTGRES_USER: sonar
|
||||
POSTGRES_PASSWORD: sonar
|
||||
volumes:
|
||||
- ./postgresql:/var/lib/postgresql
|
||||
- ./postgresql_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- custom-network
|
||||
|
||||
sonarqube:
|
||||
image: sonarqube:community
|
||||
depends_on:
|
||||
|
@ -83,19 +94,13 @@ services:
|
|||
networks:
|
||||
- custom-network
|
||||
|
||||
db:
|
||||
image: postgres:12
|
||||
environment:
|
||||
POSTGRES_USER: sonar
|
||||
POSTGRES_PASSWORD: sonar
|
||||
volumes:
|
||||
- ./postgresql:/var/lib/postgresql
|
||||
- ./postgresql_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- custom-network
|
||||
|
||||
|
||||
sonarscanner:
|
||||
image: sonarsource/sonar-scanner-cli
|
||||
|
||||
# need this for macOS Apple M1
|
||||
# platform: linux/amd64
|
||||
networks:
|
||||
- custom-network
|
||||
volumes:
|
||||
|
|
Loading…
Reference in a new issue