fix: aktualisiere das Docker-Image auf v0.1.3 und passe die Verzeichnispfade im Dockerfile und docker-compose.yml an
This commit is contained in:
+6
-4
@@ -1,8 +1,10 @@
|
|||||||
FROM docker.hnrx.net/alpine:latest
|
FROM docker.hnrx.net/alpine:latest
|
||||||
|
|
||||||
RUN mkdir /config
|
# Create application directory
|
||||||
|
RUN mkdir -p /app/config
|
||||||
|
|
||||||
WORKDIR /root/
|
# Set working directory
|
||||||
|
WORKDIR /app/
|
||||||
|
|
||||||
# Copy the compiled binary from the builder stage
|
# Copy the compiled binary from the builder stage
|
||||||
COPY manage-servers .
|
COPY manage-servers .
|
||||||
@@ -10,9 +12,9 @@ COPY manage-servers .
|
|||||||
# Copy the index.html file for the web server
|
# Copy the index.html file for the web server
|
||||||
COPY index.html .
|
COPY index.html .
|
||||||
|
|
||||||
# Copy the servers.json file
|
RUN ls -la /app/
|
||||||
# COPY servers.json .
|
|
||||||
|
|
||||||
|
# Make the binary executable
|
||||||
RUN chmod +x ./manage-servers
|
RUN chmod +x ./manage-servers
|
||||||
|
|
||||||
# Expose the port the web server listens on
|
# Expose the port the web server listens on
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
manage-servers:
|
manage-servers:
|
||||||
image: git.hnrx.net/hnrx/manage-servers:v0.1.2
|
image: git.hnrx.net/hnrx/manage-servers:v0.1.3
|
||||||
container_name: manage-servers
|
container_name: manage-servers
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
- "traefik.http.routers.manage-servers.tls.certresolver=cloudflare"
|
- "traefik.http.routers.manage-servers.tls.certresolver=cloudflare"
|
||||||
- "traefik.http.services.manage-servers.loadbalancer.server.port=8080"
|
- "traefik.http.services.manage-servers.loadbalancer.server.port=8080"
|
||||||
volumes:
|
volumes:
|
||||||
- /volume1/docker-data/manage-servers:/config
|
- /volume1/docker-data/manage-servers:/app/config
|
||||||
networks:
|
networks:
|
||||||
- my-container-macvlan-200
|
- my-container-macvlan-200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user