You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Make it possible to bind several containers in one pod
2
+
3
+
In this example, we need to make nginx and php-fpm to run inside the same "pod". The reason is that we configured FPM to listen an unix socket instead of the 9000 port.
4
+
5
+
Because NGinx will need to connect to the unix socket wich is a file, both containers should share the same node and work together.
6
+
7
+
So, in the docker-compose file, we need to declare:
8
+
-`katenary.io/empty-dirs: socket` where `socket` is the "volume name", this will avoid the creation of a PVC
9
+
-`katenary.io/same-pod: http` in `php` container to declare that this will be added in the `containers` section of the `http` deployment
10
+
11
+
You can note that we also use `configmap-volumes` to declare our configuration as `configMap`.
12
+
13
+
Take a look on [chart/same-pod](chart/same-pod) directory to see the result of the `katenary convert` command.
0 commit comments