Add docker
This commit is contained in:
parent
0e757acf3b
commit
a546472fe8
|
@ -0,0 +1,10 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
COPY index.html /usr/share/nginx/html/
|
||||
COPY map.html /usr/share/nginx/html/
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
|
@ -0,0 +1,20 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
img:
|
||||
build: .
|
||||
ports:
|
||||
- "${HOST_PORT}:8000"
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.img.rule=Host(`${URL}`)"
|
||||
- "traefik.http.routers.img.entrypoints=websecure"
|
||||
- "traefik.http.routers.img.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.img.loadbalancer.server.port=8000"
|
||||
networks:
|
||||
- traefik_network
|
||||
|
||||
networks:
|
||||
traefik_network:
|
||||
external: true
|
|
@ -0,0 +1,14 @@
|
|||
server {
|
||||
listen 8000;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue