Added Docker information
This commit is contained in:
parent
284a3ef1ba
commit
c0b0ef28fd
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
# production stage
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
WORKDIR /app
|
||||
COPY iframe_api_v2.html /app/iframe_api_v2.html
|
||||
COPY libs /app/libs
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
16
docker-bake.hcl
Normal file
16
docker-bake.hcl
Normal file
@ -0,0 +1,16 @@
|
||||
variable "TAG" {
|
||||
default = "latest"
|
||||
}
|
||||
variable "REPO" {
|
||||
default = "registry.mortons.site"
|
||||
}
|
||||
|
||||
group "default" {
|
||||
targets = ["five9-softphone"]
|
||||
}
|
||||
|
||||
target "five9-softphone" {
|
||||
dockerfile = "Dockerfile"
|
||||
tags = ["${REPO}/five9-softphone:${TAG}"]
|
||||
platforms = ["linux/amd64", "linux/arm64"]
|
||||
}
|
||||
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
five9-softphone:
|
||||
deploy:
|
||||
labels:
|
||||
shepherd.enable: "true"
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.eo-services-client-https.entrypoints: https
|
||||
traefik.http.routers.eo-services-client-https.rule: Host(`five9-softphone.mortons.site`)
|
||||
traefik.http.routers.eo-services-client-https.tls: ""
|
||||
traefik.http.routers.eo-services-client-https.tls.certresolver: le
|
||||
traefik.http.services.eo-services-client.loadbalancer.server.port: "80"
|
||||
environment:
|
||||
TZ: America/Chicago
|
||||
image: registry.mortons.site/five9-softphone:latest
|
||||
networks:
|
||||
traefik_public: null
|
||||
|
||||
networks:
|
||||
traefik_public:
|
||||
name: traefik_public
|
||||
external: true
|
||||
@ -17,7 +17,7 @@ gulp.task('server', function() {
|
||||
}
|
||||
},
|
||||
ghostMode: false,
|
||||
host: args.host || 'crm-sdk.five9lab.com',
|
||||
host: args.host || 'five9-softphone.mortons.site',
|
||||
port: args.port || '443',
|
||||
open: false,
|
||||
startPath: 'iframe_api_v2.html'
|
||||
|
||||
36
nginx.conf
Normal file
36
nginx.conf
Normal file
@ -0,0 +1,36 @@
|
||||
load_module /usr/lib/nginx/modules/ngx_http_js_module.so;
|
||||
|
||||
user nginx;
|
||||
worker_processes 1;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
mirror /mirror;
|
||||
root /app;
|
||||
index iframe_api_v2.html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user