... | ... | @@ -52,4 +52,56 @@ Step 6) Run the Docker image |
|
|
|
|
|
```
|
|
|
docker run -d --name sdk4ed_dashboard_api --network="host" name/sdk4ed-td-api
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
## TD New Code
|
|
|
|
|
|
Create a ```docker-compose.yml``` file similar to the following:
|
|
|
|
|
|
`
|
|
|
version: '3.3'
|
|
|
|
|
|
services:
|
|
|
sonarqubeSDKnc:
|
|
|
image: sonarqube:7.9.5-community
|
|
|
depends_on:
|
|
|
- dbSDKnc
|
|
|
ports:
|
|
|
- "9555:9000"
|
|
|
networks:
|
|
|
- sonarnetSDKnc
|
|
|
environment:
|
|
|
SONARQUBE_JDBC_URL: jdbc:postgresql://dbSDKnc:5432/sonar
|
|
|
volumes:
|
|
|
- ./sonarqube_conf:/opt/sonarqube/conf
|
|
|
- ./sonarqube_extensions:/opt/sonarqube/extensions
|
|
|
- ./sonarqube_logs:/opt/sonarqube/logs
|
|
|
- ./sonarqube_data:/opt/sonarqube/data
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
dbSDKnc:
|
|
|
image: postgres:13
|
|
|
ports:
|
|
|
- "5555:5432"
|
|
|
networks:
|
|
|
- sonarnetSDKnc
|
|
|
volumes:
|
|
|
- ./postgresql_data:/var/lib/postgresql/data
|
|
|
environment:
|
|
|
POSTGRES_USER: sonar
|
|
|
POSTGRES_PASSWORD: sonar
|
|
|
|
|
|
apiSDKnc:
|
|
|
image: georgedigkas/maven:sdk4ed
|
|
|
depends_on:
|
|
|
- dbSDKnc
|
|
|
- sonarqubeSDKnc
|
|
|
ports:
|
|
|
- "8989:8080"
|
|
|
networks:
|
|
|
- sonarnetSDKnc
|
|
|
|
|
|
networks:
|
|
|
sonarnetSDKnc:
|
|
|
driver: bridge
|
|
|
` |
|
|
\ No newline at end of file |