4 Commits

Author SHA1 Message Date
f2c84fb6b2 Fixed Dockerfile 2024-01-22 02:23:43 +02:00
4f50819f92 Production docker-compose.yml updates 2024-01-22 02:12:18 +02:00
6117157598 DockerFile link to repository
* Fixed issue
2024-01-22 02:01:39 +02:00
79e44bd88a + Production docker-compose.yml 2024-01-22 01:59:38 +02:00
3 changed files with 27 additions and 1 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
/**
!main.go
!/lib
!/templates
!/go.mod
!/go.sum

View File

@@ -2,6 +2,8 @@
FROM debian:bullseye
ENV IS_DOCKER TRUE
LABEL org.opencontainers.image.source https://github.com/JustKato/drive-health
# Install build dependencies and runtime dependencies
RUN apt-get update && apt-get install -y \
gcc \
@@ -25,7 +27,7 @@ ENV GO111MODULE=on
ENV DIST_DIR=/app
# Create the directory and set it as the working directory
WORKDIR $DIST_DIR
WORKDIR /app
# Copy the Go files and download dependencies
COPY go.mod go.sum ./

17
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,17 @@
version: "3.8"
services:
drive-health:
# Latest image pull, mention the specific version here please.
image: ghcr.io/justkato/drive-health:latest
# Restart in case of crashing
restart: unless-stopped
# Load environment variables from .env file
env_file:
- .env
# Mount the volume to the local drive
volumes:
- ./data:/data
# Setup application ports
ports:
- 5003:8080