我有一个现有的项目( API - portal - Mysql ),我使用了Docker-compose而不使用dockerfile,我发布了API - Portal并将它们全部放在文件夹中,然后Docker-compose up 我可以通过获取api中的本地值来访问它,但是如果我尝试使用postman通过API访问mysql,即使我打开前端网站,它也不起作用 ConnectionString:
"ConnectionString": "server=xmysql;port=4406;Database=sbs_hani;User ID=hani;Passwo
有rails应用程序,它使用mongodb和postgresql数据库。当我在本地运行时,一切都正常,但是当我试图在远程容器中打开时,它会抛出错误消息。
2021-03-14T20:22:27.985+0000 Failed: error connecting to db server: no reachable servers
docker-compose.yml文件定义了以下服务:
redis mongodb db rails
我使用以下命令启动远程容器:
docker-compose build -成功构建
docker-compose up -d -容器已经启动并运行
当我连
我希望确保Postgres数据(使用基于Linux的映像)保持不变,即使在我的Windows主机重新启动之后。
我试着遵循的步骤
docker-compose.yml
volumes:
- ./postgres_data:/var/lib/postgresql/data
但是,我错了
waiting for server to start....FATAL: data directory "/var/lib/postgresql/data/pgdata" has wrong ownership
HINT: The server must be started by th