User Tools

Site Tools


docker:compose

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docker:compose [2018/09/25 15:00]
127.0.0.1 external edit
docker:compose [2020/04/14 12:09] (current)
adyxax
Line 1: Line 1:
 ====== docker-compose ====== ====== docker-compose ======
- +~~REDIRECT>https://newwiki.adyxax.org/blog/​2018/​09/​25/​docker-compose-predictable-bridge/~~
-===== Using the default bridge, or a predefined user bridge ===== +
- +
-By default, docker-compose will create a network with a randomly named bridge. If you are like me using a strict firewall on all your machines, this just cannot work. +
- +
-You need to put your services in ''​network_mode:​ "​bridge"'' ​ and add a custom ''​network''​ entry like : +
-<code> +
-version'3.0' +
- +
-services: +
-  sshportal:​ +
-    image: moul/sshportal +
-    environment:​ +
-      ​SSHPORTAL_DEFAULT_ADMIN_INVITE_TOKEN=integration +
-    command: server ​--debug +
-    depends_on:​ +
-      - testserver +
-    ports: +
-      - 2222 +
-    network_mode:​ "bridge+
-networks: +
-  default: +
-    external: +
-      name: bridge +
-</code>+
docker/compose.txt · Last modified: 2020/04/14 12:09 by adyxax