Create your network named 'yournetwork':
$ docker network create -d bridge yournetwork
You have created your own network now.
Verify it by typing
$network inspect yournetwork:
In the docker-compose.yml:
networks:
yournetwork: #TODO remove this hard-coded network reference
external:
name: ${NETWORK}
yourservice:
container_name: "your-container-name"
image: your-image-name:${TAG:-latest} #will pull the latest #tagged image of yours
ports:
- 8080:8080 #example localhost:8080
net: ${NETWORK}
Start it with:
$ NETWORK=yournetwork docker-compose-up
Abonnieren
Kommentare zum Post (Atom)
NEW BLOG! http://cleancode.consulting/
Dear Reader, This Blog is closed and remains as an archive. Please find our new Blog at http://cleancode.consulting/
-
Resolve a Merge Conflict in GIT with IntelliJ Let us assume you are using Bitbucket or a similar tool to administrate and host your GI...
-
Just create a package-info.java file for your package in which you have your POJO: @javax.xml.bind.annotation.XmlSchema(namespace = ...
Keine Kommentare:
Kommentar veröffentlichen