First working version
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -0,0 +1,11 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
RUN apk add -U --no-cache nginx wget
|
||||||
|
RUN addgroup nginx1 && adduser -DG nginx1 nginx1
|
||||||
|
|
||||||
|
RUN wget https://github.com/bastienwirtz/homer/releases/download/v22.02.1/homer.zip && unzip -d /var/www/html/ homer.zip
|
||||||
|
COPY default.conf /etc/nginx/http.d/default.conf
|
||||||
|
|
||||||
|
|
||||||
|
USER nginx
|
||||||
|
ENTRYPOINT /usr/sbin/nginx -g "daemon off;error_log /dev/stdout info;"
|
||||||
|
|
||||||
|
|||||||
6
default.conf
Normal file
6
default.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
}
|
||||||
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
version: "2"
|
||||||
|
services:
|
||||||
|
homer:
|
||||||
|
build: .
|
||||||
|
#To build from source, comment previous line and uncomment below
|
||||||
|
#build: .
|
||||||
|
container_name: homer
|
||||||
|
volumes:
|
||||||
|
- ./assets:/var/www/html/assets
|
||||||
|
ports:
|
||||||
|
- 2080:80
|
||||||
|
#environment:
|
||||||
|
# - UID=1000
|
||||||
|
# - GID=1000
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user