4
0

index.adoc 1023 B

1234567891011121314151617181920212223242526272829303132
  1. [#container-control-panel]
  2. = Container Control Panel
  3. OliveTin is frequently used to create simple container control panels, this is one of the default examples that ships with the standard OliveTin config.yaml.
  4. image::solutions/container-control-panel/preview.png[]
  5. include::partial$container_socket.adoc[]
  6. == Entity file
  7. To build this Container Control dashboard, we use an xref::entities/intro.adoc[entity file] that stores and updates produced by `docker ps --format json > /etc/OliveTin/entities/containers.json`
  8. [source,yaml]
  9. .`/etc/OliveTin/entities/containers.json`
  10. ----
  11. include::example$solutions/container-control-panel/config/containers.json[]
  12. ----
  13. You can generate this file yourself the first time, but the `config.yaml` below shows how OliveTin can run the `docker ps` command on startup, and on a schedule to update the file.
  14. == Configuration
  15. Then use the following configuration file;
  16. [source,yaml]
  17. .`config.yaml`
  18. ----
  19. include::example$solutions/container-control-panel/config/config.yaml[]
  20. ----