As mentioned in the subject a have a very simple prototyping environment in mu Windows 10 host where I need to compose two containers.
This is my docker-compose.yaml file
version: '3.3'
services:
web:
image: microsoft/aspnetcore:1.1
container_name: web
ports:
- 5555:80
links:
- db
db:
image: microsoft/mssql-server-linux:rc1
container_name: db
ports:
- 1533:1433
environment:
- "ACCEPT_EULA=Y"
- "MSSQL_SA_PASSWORD=MyAdminPwd2017"
- "MSSQL_PID=Developer"
The thing is I need to access my db
container from both inside the swarm (the web
container) and from the localhost, and the file where that is configured is shared via a volume
. Is there a way I can set that in my compose file? maybe thru a different network?
Hope I made myself clear.