[Feature] Add docker compose #6

Merged
iamdoubz merged 4 commits from feature_docker_compose into main 2026-06-18 10:00:53 -05:00
5 changed files with 36 additions and 1455 deletions

No files matched your search

+1 -4
View File
@@ -23,16 +23,13 @@ jobs:
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.dou.bet -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Install QEMU
uses: docker/setup-qemu-action@v3
- name: Install Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push multi-arch image
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag $IMAGE:$TAG \
--tag $IMAGE:latest \
--cache-from type=registry,ref=$CACHE_IMAGE \
+4
View File
@@ -17,6 +17,10 @@ ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
RUN apt update \
&& apt install -y --no-install-recommends wget \
&& rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev && npm cache clean --force
+25
View File
@@ -0,0 +1,25 @@
services:
drawit:
image: git.dou.bet/iamdoubz/drawit:latest
container_name: drawit
mem_limit: 256M
restart: always
ports:
- "127.0.0.1:3000:3000"
env_file:
- .env # Copy .env.example to .env and fill out
#-stack.env # If using Portainer, this needs to be named `stack.env`
environment:
NODE_ENV: production
PORT: 3000
volumes:
- drawit_data:/app/data
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1"]
interval: 120s
timeout: 5s
retries: 2
start_period: 40s
volumes:
drawit_data:
-1445
View File
File diff suppressed because it is too large. Load diff
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "drawit",
"version": "0.1.0",
"version": "0.1.3",
"private": true,
"description": "Free, open-source, privacy-first web app that teaches kids how to draw.",
"license": "MIT",
@@ -12,12 +12,12 @@
"lint": "next lint"
},
"dependencies": {
"better-sqlite3": "^11.8.1",
"next": "15.1.12",
"nodemailer": "^6.9.16",
"better-sqlite3": "^12.11.1",
"next": "15.5.19",
"nodemailer": "^9.0.1",
"pdf-lib": "^1.17.1",
"react": "19.0.0",
"react-dom": "19.0.0"
"react": "19.2.7",
"react-dom": "19.2.7"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.12",