mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Use caddy for serveing static file
This commit is contained in:
@@ -21,9 +21,10 @@ spec:
|
||||
claimName: downloads-nfs
|
||||
containers:
|
||||
- name: static-file-server
|
||||
image: halverneus/static-file-server
|
||||
image: caddy:2
|
||||
args: ["file-server", "--listen", "8080", "--root", "/www", "--browse"]
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsUser: 1000
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
@@ -35,14 +36,14 @@ spec:
|
||||
volumeMounts:
|
||||
- name: downloads
|
||||
subPath: ftp
|
||||
mountPath: /web
|
||||
mountPath: /www
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 126Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
cpu: 400m
|
||||
memory: 512Mi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in New Issue
Block a user