Skip to content

Commit 8fcdf57

Browse files
committed
using networks rather then network_mode
1 parent af612cb commit 8fcdf57

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

docs/api.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Postman-Token: 1c4b215b-7bb4-8045-4896-9c4d3ac3c2de
4040
"docker_image" : "registry.vidazoo.com:5000/nginx",
4141
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
4242
"running": true,
43-
"network_mode": "bridge",
43+
"networks": ["nebula"],
4444
"privileged": false,
4545
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"]
4646
}
@@ -61,7 +61,7 @@ success
6161
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"],
6262
"running": true,
6363
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
64-
"network_mode": "bridge",
64+
"nebula": ["nebula"],
6565
"starting_ports": [
6666
80
6767
]
@@ -167,7 +167,7 @@ Postman-Token: d67e1044-561e-cf39-a59a-93101102231e
167167
},
168168
"running": true,
169169
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
170-
"network_mode": "bridge",
170+
"nebula": ["nebula"],
171171
"starting_ports": [
172172
80,
173173
443,
@@ -208,7 +208,7 @@ Postman-Token: 393100e2-fb29-3b02-fb66-b77388f810b1
208208
"test3t2t32": "tesg4ehgee"
209209
},
210210
"running": false,
211-
"network_mode": "bridge",
211+
"networks": ["nebula"],
212212
"command": "stop",
213213
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
214214
"starting_ports": [
@@ -252,7 +252,7 @@ Postman-Token: 8be83768-3921-f4cd-a6cb-b4fcda6b7e32
252252
},
253253
"running": true,
254254
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
255-
"network_mode": "bridge",
255+
"networks": ["nebula"],
256256
"command": "start",
257257
"starting_ports": [
258258
80,
@@ -295,7 +295,7 @@ Postman-Token: fa2e1e6f-c0c9-0dc5-a323-00ed9503cf4e
295295
},
296296
"running": true,
297297
"command": "restart",
298-
"network_mode": "bridge",
298+
"networks": ["nebula"],
299299
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
300300
"starting_ports": [
301301
80,
@@ -340,7 +340,7 @@ Postman-Token: fa2e1e6f-c0c9-0dc5-a323-00ed9503cf4e
340340
},
341341
"running": true,
342342
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
343-
"network_mode": "bridge",
343+
"networks": ["nebula]
344344
"command": "roll",
345345
"starting_ports": [
346346
80,
@@ -376,7 +376,7 @@ Postman-Token: 9cd8b55e-2512-07fc-9cf1-15fc5c562635
376376
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
377377
"docker_image" : "registry.vidazoo.com:5000/httpd",
378378
"running": true,
379-
"network_mode": "bridge",
379+
"networks": ["nebula]
380380
"privileged": false,
381381
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"]
382382
}
@@ -396,7 +396,7 @@ success:
396396
},
397397
"running": true,
398398
"command": "update",
399-
"network_mode": "bridge",
399+
"networks": ["nebula]
400400
"starting_ports": [
401401
80,
402402
443,
@@ -453,7 +453,7 @@ success:
453453
"running": true,
454454
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
455455
"command": "update",
456-
"network_mode": "bridge",
456+
"networks": ["nebula]
457457
"starting_ports": [
458458
80,
459459
443,

docs/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following table shows the config variables used to set individual apps insid
99
| env_vars | dict | {"test1": "test123", "example": "example123"} | a dict of envvars that will be passed to each work containers, use {} for non |
1010
| docker_image | string | "registry.vidazoo.com:5000/nginx" | what docker image to run, note that it's currently not possible to set a different starting command then the one set in the container Dockerfile |
1111
| running | bool | true | true - app will run, false - stops said app |
12-
| network_mode | string | "bridge" | the network mode of the containers, should be either bridge, host, none, "container:name/id" |
12+
| networks | list | ["nebula", "bridge"] | the networks containers will be part of, if you wish to use host or none networks make sure that they are alone in the list (["host"] or ["none"]), a default bridge user network named "nebula" is also added in any case which is not "host" or "none", the "nebula" network can be either be added explictly (["nebula", "example-net"]) or implicitly (["example-net"]) and will also be added if an empty list is set ([]) |
1313
| volumes | list | ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"] | what volumes to mount inside the containers ,follows docker run -v syntex of host_path:container_path:ro/rw, use [] for non |
1414
| privileged | bool | false | true - app gets privileged permissions, false - no privileged permissions |
1515
| devices | list | ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"] | what devices to grant the containers access ,follows docker run --device of host_path:container_path:ro/rwm, use [] for non |

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ from the directory where you saved docker-compose.yml at (same name is important
4444
"docker_image" : "nginx",
4545
"running": true,
4646
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
47-
"network_mode": "bridge",
47+
"networks": ["nebula"],
4848
"privileged": false,
4949
"devices": []
5050
}'

docs/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ Allows to:
1313
5. Change # of containers running per core
1414
6. Change image used
1515
7. Manage multiple apps over different worker servers, each server "pod" of apps is determined by what APP_NAME envvar value comma separated list you start the worker-manager container with, allowing you to mix and match for diffrent worker clusters while still managing all of them from the same api-manager containers.
16-
8. mount volumes
17-
9. set containers with privileged permissions
18-
10. mount devices
16+
8. Mount volumes
17+
9. Set containers with privileged permissions
18+
10. Mount devices
19+
11. Control containers network affiliation
1920

2021
There are 2 custom created services:
2122

docs/sdk/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ app_conf = {
3636
"test3t2t32": "tesg4ehgee"
3737
},
3838
"docker_ulimits": [],
39-
"network_mode": "bridge",
39+
"networks": ["nebula"],
4040
"running": True,
4141
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"],
4242
"privileged": False,

docs/use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Cache-Control: no-cache
2424
"docker_image" : "<your-site-container-image>",
2525
"running": true,
2626
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
27-
"network_mode": "bridge",
27+
"networks": ["nebula"],
2828
"privileged": false,
2929
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"]
3030
}
@@ -48,7 +48,7 @@ Cache-Control: no-cache
4848
"docker_image" : "<your-lb-container-image>",
4949
"running": true,
5050
"volumes": ["/tmp:/tmp/1", "/var/tmp/:/var/tmp/1:ro"],
51-
"network_mode": "host",
51+
"networks": ["host"],
5252
"privileged": false,
5353
"devices": ["/dev/usb/hiddev0:/dev/usb/hiddev0:rwm"]
5454
}

0 commit comments

Comments
 (0)