I can run docker network connect squadwars web_only and then docker network inspect squadwars and see it connected to my squadwars network.
But if I do:
./launcher start web_only --docker-args="–network squadwars" it doesn’t seem to connect itself to that network! (And yes I destroyed the container first).
I don’t see my options being passed to the docker run command.
It looks like I can specify docker args in web_only.yml though, do you know the syntax for that?
Edit: Okay the syntax was really easy, just:
docker_args: “–network squadwars”
Now it’s working fine, thank you. (Still doesn’t work from commandline but I don’t care :))
Edit: Well the squadwars network is working fine, but discourse seems to be broken. I’m going to try to add it onto the host network as well, not sure if that works.
I just got this working with a web_only container, a data container, and nginx-proxy in front, all on the same user-defined network.
With the web_only template, the network needs to be specified in the user args on the command line because at least one of the lines that runs the base docker image does not include $docker_args, while that line does include $user_args.
My holistic comprehension of launcher is weak, but I think that perhaps the cleanest thing would be to merge $user_args with $docker_args?
$user_args comes from the command-line flag --docker-args, and $docker_args comes from the config file yaml entry for docker_args:.
The $docker_args var is only used once in the entire launcher script (alongside $user_args, while $user_args is used in all run invocations that I see.
Does merging $user_args and $docker_args into one $user_args var sound okay?