Skip to content

Commit

Permalink
# add puter
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Sep 27, 2024
1 parent e24611c commit 41aeeb9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions server/docker/os/puter/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions server/docker/os/puter/init.sh
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 41aeeb9

Please sign in to comment.