You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/12/05 10:50:46 UTC

[GitHub] [dolphinscheduler] graphnj commented on issue #7088: [BUG][DOCKER] docker compose api server failed

graphnj commented on issue #7088:
URL: https://github.com/apache/dolphinscheduler/issues/7088#issuecomment-986207168


   1. in docker-compose.yml set container_name to ds_postgresql or other fixed name.
   2. change 127.0.0.1:5432 in container to ds_postgresql:5432 in container of apache/dolphinscheduler:2.0.0
   3. commit this container to images local.
   4. change image's tag in docker-compose.yml to new images.
   
   can work now
   
   本质只要将镜像中conf/datasource.properties的spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/dolphinscheduler改为
   spring.datasource.url=jdbc:postgresql://ds-postgresql:5432/dolphinscheduler
   ds-postgresql为定义的容器名


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org