Skip to content

Commit

Permalink
🐛 Fixed sonar container starting before db handles requests
Browse files Browse the repository at this point in the history
  • Loading branch information
PheonBest committed Apr 5, 2023
1 parent a498e8a commit 517b0a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- "extensions:/opt/sonarqube/extensions"
- "logs:/opt/sonarqube/logs"
- "data:/opt/sonarqube/data"

restart: unless-stopped
db:
image: postgres:12
container_name: postgresql_ecocode
Expand All @@ -43,6 +43,7 @@ services:
POSTGRES_PASSWORD: sonar
POSTGRES_DB: sonarqube
PGDATA: pg_data:/var/lib/postgresql/data/pgdata
restart: unless-stopped

networks:
sonarnet:
Expand Down

0 comments on commit 517b0a9

Please sign in to comment.