VirtoCommerce / vc-docker

Docker support
6 stars 5 forks source link

In linux environment platform docker image runs before sql image fully initialized #3

Closed Woland2k closed 4 years ago

Woland2k commented 4 years ago

When using docker compose, platform image starts and tries to connect to SQL Server before SQL Server image can initialize which causes platform to crash, especially on the very first run.

In order to resolve it we'll need to add healthcheck dependency so the platform image is not initialized before sql image is fully functioning.

Woland2k commented 4 years ago

Resolved by adding waitfor script in docker-compose file.