From abe2aeceab858d6ad3a838ffe2970a0e9e2a4606 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 20 Jul 2024 16:20:13 -0500 Subject: Initial commit --- templates/kitchen-compose.yml.j2 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 templates/kitchen-compose.yml.j2 (limited to 'templates/kitchen-compose.yml.j2') diff --git a/templates/kitchen-compose.yml.j2 b/templates/kitchen-compose.yml.j2 new file mode 100644 index 0000000..02b13c7 --- /dev/null +++ b/templates/kitchen-compose.yml.j2 @@ -0,0 +1,38 @@ +services: + kitchen: + build: ./markskitchen.git/ + restart: always + depends_on: + - kitchen_db + environment: +{% for key, value in kitchen_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + labels: +{% with router_name="kitchenv1", host_prefix="v1", container_port="8080" %} +{% include "util/traefik_labels.txt.j2" %} +{% endwith %} + + kitchen_db: + image: mariadb + restart: always + environment: +{% for key, value in kitchen_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + volumes: + - ./data/kitchen_db:/var/lib/mysql + games: + build: ./games.git/ + restart: always + environment: +{% for key, value in games_env.items() %} + - {{ key }}={{ value }} +{% endfor %} + + labels: +{% with router_name="games", host_prefix="games", container_port="8080" %} +{% include "util/traefik_labels.txt.j2" %} +{% endwith %} -- cgit v1.2.3