From 38d5e583cf1ea193fcb97bfdbe85ff0bed1a4c0a Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sun, 9 Jun 2024 01:20:58 -0400 Subject: [PATCH] build: migrate to spud --- service.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 service.yml diff --git a/service.yml b/service.yml new file mode 100644 index 0000000..d59d3a0 --- /dev/null +++ b/service.yml @@ -0,0 +1,34 @@ +name: code-forge +ports: + - host: 3000 + container: 3000 + - host: 2052 + container: 2222 + - host: 3001 + container: 9187 +volumes: + - name: db + - name: forgejo-data + - name: forgejo-config +containers: + - name: db + image: postgres:16.2 + volumes: + - name: db + container: /var/lib/postgresql/data + - name: app + image: codeberg.org/forgejo/forgejo:1.21.8-0-rootless + volumes: + - host: /etc/timezone + container: /etc/timezone + readonly: true + - host: /etc/localtime + container: /etc/localtime + readonly: true + - name: forgejo-data + container: /var/lib/gitea + - name: forgejo-config + container: /etc/gitea + - name: pg-exporter + image: quay.io/prometheuscommunity/postgres-exporter + env-file: /etc/opt/spadinastan/code-forge-exporter.env