First working version

This commit is contained in:
2022-03-23 12:56:27 +00:00
parent 908fa16213
commit fa89a9b6f9
3 changed files with 33 additions and 0 deletions

View File

@@ -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
View File

@@ -0,0 +1,6 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
}

16
docker-compose.yml Normal file
View 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