From 2160e087ced699b8e50655cf0937777ad7103701 Mon Sep 17 00:00:00 2001 From: Donovan Date: Wed, 20 Nov 2024 16:52:38 -0600 Subject: [PATCH] add compose --- .env | 1 + compose.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .env create mode 100644 compose.yaml diff --git a/.env b/.env new file mode 100644 index 0000000..5c01d57 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +JWT_SECRET=cab2f6a968c2a11601bb33c41c5940b7 \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..0b3246f --- /dev/null +++ b/compose.yaml @@ -0,0 +1,16 @@ +version: '3.9' + +services: + go-nkode: + container_name: go-nkode + image: registry.donovankelly.dev/go-nkode + volumes: + - /var/go-nkode/sqlite:/app/data/sqlite + - /var/go-nkode/icons:/app/data/icons + + # .env should contain JWT_SECRET + env_file: + - .env + + ports: + - "8080:8080" \ No newline at end of file