From 41aeeb905c6c87a9e76f1cacf6aaea837183c39e Mon Sep 17 00:00:00 2001 From: Bruce CHEN <805899926@qq.com> Date: Fri, 27 Sep 2024 16:21:50 +0800 Subject: [PATCH] # add puter --- server/docker/os/puter/deploy.yml | 23 +++++++++++++++++++++++ server/docker/os/puter/init.sh | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 server/docker/os/puter/deploy.yml create mode 100644 server/docker/os/puter/init.sh diff --git a/server/docker/os/puter/deploy.yml b/server/docker/os/puter/deploy.yml new file mode 100644 index 00000000..8311220d --- /dev/null +++ b/server/docker/os/puter/deploy.yml @@ -0,0 +1,23 @@ +version: "3.9" + +x-traefik-label: &traefik-label + traefik.enable: true + traefik.http.routers.{{ param_role_name }}.service: {{ param_role_name }} + traefik.http.services.{{ param_role_name }}.loadbalancer.server.port: 4100 + +services: + puter: + container_name: puter + image: heyputer/puter:latest # ghcr.io/heyputer/puter:latest + pull_policy: always + ports: + - "4100:4100" + labels: + <<: *traefik-label + environment: + PUID: 1000 + PGID: 1000 + volumes: + - {{ param_docker_data }}/{{ param_role_name }}/conf/:/etc/puter/ + - {{ param_docker_data }}/{{ param_role_name }}/data/:/var/puter/ + restart: always \ No newline at end of file diff --git a/server/docker/os/puter/init.sh b/server/docker/os/puter/init.sh new file mode 100644 index 00000000..997acab3 --- /dev/null +++ b/server/docker/os/puter/init.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -e +conf_dir={{ param_docker_data }}/{{ param_role_name }}/conf/ +data_dir={{ param_docker_data }}/{{ param_role_name }}/data/ +sudo mkdir -p ${conf_dir} ${data_dir} && sudo chown 1000:1000 ${conf_dir} ${data_dir} \ No newline at end of file