mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55: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:
|
depends_on:
|
||||||
- petclinic
|
- 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:
|
sonarqube:
|
||||||
image: sonarqube:community
|
image: sonarqube:community
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -83,19 +94,13 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- custom-network
|
- 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:
|
sonarscanner:
|
||||||
image: sonarsource/sonar-scanner-cli
|
image: sonarsource/sonar-scanner-cli
|
||||||
|
|
||||||
|
# need this for macOS Apple M1
|
||||||
|
# platform: linux/amd64
|
||||||
networks:
|
networks:
|
||||||
- custom-network
|
- custom-network
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in a new issue