mirror of
https://github.com/JustKato/drive-health.git
synced 2026-03-04 08:29:45 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f2c84fb6b2 | |||
| 4f50819f92 |
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
|
||||
!main.go
|
||||
!/lib
|
||||
!/templates
|
||||
!/go.mod
|
||||
!/go.sum
|
||||
@@ -27,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 ./
|
||||
|
||||
@@ -2,13 +2,16 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
drive-health:
|
||||
# Build the current image
|
||||
# Latest image pull, mention the specific version here please.
|
||||
image: ghcr.io/justkato/drive-health:latest
|
||||
# Read straight from the .env file, or use the environment path
|
||||
# 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:
|
||||
- ./dev_data:/data
|
||||
- ./data:/data
|
||||
# Setup application ports
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 5003:8080
|
||||
Reference in New Issue
Block a user