Compare commits
165
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f49ea9b824 | ||
|
|
c97ba0e12e | ||
|
|
39043271db | ||
|
|
e85d62a211 | ||
|
|
a3d1a9fc82 | ||
|
|
b8e59fd5a0 | ||
|
|
04f47471cb | ||
|
|
fd0dbdc01b | ||
|
|
2872d48f1c | ||
|
|
3e0fbce2c4 | ||
|
|
70d68872bd | ||
|
|
3cd91ed30f | ||
|
|
9009cc8a5e | ||
|
|
85e1ca3bc0 | ||
|
|
88492056a8 | ||
|
|
c3689ceb83 | ||
|
|
9fb724d72f | ||
|
|
a3fbd43a33 | ||
|
|
2d231d4e03 | ||
|
|
441b693bd3 | ||
|
|
b71e0dfba1 | ||
|
|
570b5c6fb5 | ||
|
|
d361c16d79 | ||
|
|
ce3a61a47d | ||
|
|
d48a538719 | ||
|
|
f73c0155a0 | ||
|
|
d66f162805 | ||
|
|
15794021c8 | ||
|
|
9657125ea0 | ||
|
|
a09792cd5b | ||
|
|
5e9a7ccf82 | ||
|
|
412a8ccdcf | ||
|
|
b466e5b6ee | ||
|
|
2c6146bfbb | ||
|
|
91fa5c4f5a | ||
|
|
4a3ffdfc0d | ||
|
|
02ff859c54 | ||
|
|
0767f8b5d9 | ||
|
|
82c0490780 | ||
|
|
13f023260b | ||
|
|
eac0beaba4 | ||
|
|
b3831d4678 | ||
|
|
dd3fd2da68 | ||
|
|
8a6b1bc618 | ||
|
|
e5d018989a | ||
|
|
2e1528dd1f | ||
|
|
a1c43017d9 | ||
|
|
46f79cbe9f | ||
|
|
27f537c430 | ||
|
|
d61048c285 | ||
|
|
8cc34542e1 | ||
|
|
3d488c4b93 | ||
|
|
0a5083fcff | ||
|
|
7c52bf2e14 | ||
|
|
1656c1ddfe | ||
|
|
71de68a9f2 | ||
|
|
620a8b9a1b | ||
|
|
e4b6664eb7 | ||
|
|
49964d06b3 | ||
|
|
9357a27076 | ||
|
|
54a3be8b47 | ||
|
|
3dacb83815 | ||
|
|
8137b34aef | ||
|
|
0c84e17f8b | ||
|
|
86527485a9 | ||
|
|
cc37495dd6 | ||
|
|
8b2df44fc3 | ||
|
|
47078b0d9c | ||
|
|
df412eb512 | ||
|
|
a3ae179ad6 | ||
|
|
5c7b20e374 | ||
|
|
093d45a679 | ||
|
|
5a73a82eed | ||
|
|
84c5fca9ae | ||
|
|
09f6858326 | ||
|
|
7d86256821 | ||
|
|
6d3fc1b774 | ||
|
|
900eeb79cc | ||
|
|
326cce6fd8 | ||
|
|
c8139e01d6 | ||
|
|
1f9a0b1bb9 | ||
|
|
9fc3242be7 | ||
|
|
4d6fe9941b | ||
|
|
ad48ee11ee | ||
|
|
418de3d52d | ||
|
|
861551f209 | ||
|
|
4942daea62 | ||
|
|
c7aaebf8a1 | ||
|
|
0cf2367cbe | ||
|
|
1c4789a4a9 | ||
|
|
eaea9577ea | ||
|
|
da3f2fdb1b | ||
|
|
ca176b628a | ||
|
|
85cd2b8d5e | ||
|
|
b7c51c7f3c | ||
|
|
813056db7e | ||
|
|
fc7a469181 | ||
|
|
a3090ae8de | ||
|
|
0ba9918b75 | ||
|
|
089113fe16 | ||
|
|
decd443031 | ||
|
|
e7d31e8397 | ||
|
|
80aa16c844 | ||
|
|
a2d679457d | ||
|
|
51eeb3d000 | ||
|
|
ec7e146e6d | ||
|
|
08f70a7a61 | ||
|
|
df196720b8 | ||
|
|
e844eafd41 | ||
|
|
b22b25f386 | ||
|
|
bde444a55a | ||
|
|
def2fc0335 | ||
|
|
ec4a85ecbe | ||
|
|
f44662e487 | ||
|
|
694f0b0d25 | ||
|
|
19b6f3031e | ||
|
|
8095851fb9 | ||
|
|
a926746659 | ||
|
|
f18008507d | ||
|
|
427d23362b | ||
|
|
7a90266be6 | ||
|
|
b1e1f4d65e | ||
|
|
6c60e3792c | ||
|
|
1e0f5207b2 | ||
|
|
140fb1d7d8 | ||
|
|
4665aa40db | ||
|
|
6ee3e34d0c | ||
|
|
5eb82ae8b7 | ||
|
|
d2ca350fd4 | ||
|
|
744f963046 | ||
|
|
ddf8132963 | ||
|
|
ccf5d87a7c | ||
|
|
7e14892de1 | ||
|
|
910fb9766b | ||
|
|
b54c69ae4c | ||
|
|
ce259181b9 | ||
|
|
c5307c8574 | ||
|
|
77ca1911ed | ||
|
|
278fea29b7 | ||
|
|
4ad3c839e2 | ||
|
|
93732c9fd1 | ||
|
|
6533ab3b30 | ||
|
|
fb944657b5 | ||
|
|
5e3dfec004 | ||
|
|
b834f1d27b | ||
|
|
3a374a10bc | ||
|
|
0378a0a224 | ||
|
|
d4804bd214 | ||
|
|
897880c9f0 | ||
|
|
be946356ae | ||
|
|
fea17b735c | ||
|
|
07dbb05443 | ||
|
|
d18074c556 | ||
|
|
3301654cb7 | ||
|
|
a98a4ca05a | ||
|
|
b317fd82b3 | ||
|
|
a6b9888cfe | ||
|
|
3b18e4dd36 | ||
|
|
6d40239a13 | ||
|
|
57fb4d7639 | ||
|
|
36ea133390 | ||
|
|
9f28d25eb7 | ||
|
|
8f69143715 | ||
|
|
739212ea0a | ||
|
|
c64058fff0 |
+3
-1
@@ -4,6 +4,8 @@
|
||||
.vscode
|
||||
.DS_Store
|
||||
docker-compose*.yml
|
||||
.env
|
||||
.env.template
|
||||
|
||||
# Back
|
||||
back/.DS_Store
|
||||
@@ -17,4 +19,4 @@ var
|
||||
# Front
|
||||
front/.DS_Store
|
||||
front/node_modules/
|
||||
front/dist/
|
||||
front/dist/
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
name: Docker build test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
- "!master"
|
||||
# Publish `v1.2.3` tags as releases.
|
||||
tags:
|
||||
- v*
|
||||
|
||||
# Run tests for any PRs.
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-back:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Fake env file
|
||||
run: touch .env
|
||||
|
||||
- name: Build
|
||||
run: docker-compose -f docker-compose.production.yml build back
|
||||
|
||||
build-front:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Fake env file
|
||||
run: touch .env
|
||||
|
||||
- name: Build
|
||||
run: docker-compose -f docker-compose.production.yml build front
|
||||
@@ -0,0 +1,89 @@
|
||||
name: Docker
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 4 * * 0" # run every sunday at 4 am to test if the image builds correctly given that changes of debian or compose packages can break the image
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
# Publish `v1.2.3` tags as releases.
|
||||
tags:
|
||||
- v*
|
||||
|
||||
# Run tests for any PRs.
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-front:
|
||||
name: Build front
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push front
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: front
|
||||
dockerfile: Dockerfile
|
||||
push: true
|
||||
tags: numerisisep/numeris-front:latest
|
||||
|
||||
build-back:
|
||||
name: Build back
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push back
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: back
|
||||
dockerfile: Dockerfile.production
|
||||
push: true
|
||||
tags: numerisisep/numeris-back:latest
|
||||
|
||||
|
||||
pull-and-recreate:
|
||||
name: Pull and recreate
|
||||
needs:
|
||||
- build-front
|
||||
- build-back
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: executing remote ssh commands using password
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
# password: ${{ secrets.PASSWORD }}
|
||||
key: ${{ secrets.KEY }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: |
|
||||
cd numeris
|
||||
git pull
|
||||
docker-compose -f docker-compose.production.yml pull
|
||||
docker-compose -f docker-compose.production.yml up -d --force-recreate
|
||||
@@ -2,3 +2,5 @@
|
||||
vendor
|
||||
public/storage
|
||||
public/build
|
||||
.env
|
||||
.env.template
|
||||
|
||||
+8
-5
@@ -1,4 +1,4 @@
|
||||
FROM php:7.2-apache
|
||||
FROM php:7.4-apache
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@@ -6,7 +6,9 @@ RUN apt-get update && apt-get install -y \
|
||||
zip \
|
||||
unzip \
|
||||
nano \
|
||||
libpng-dev
|
||||
libpng-dev \
|
||||
libzip-dev
|
||||
|
||||
|
||||
# Install the PHP mcrypt pdo_mysql extension
|
||||
RUN docker-php-ext-install pdo_mysql gd zip
|
||||
@@ -19,16 +21,17 @@ RUN a2dissite 000-default.conf && a2ensite numeris.conf && a2enmod rewrite && se
|
||||
# Enable php conf
|
||||
COPY docker/php/php.ini /usr/local/etc/php/conf.d/default.ini
|
||||
|
||||
COPY . /home/numeris
|
||||
WORKDIR /home/numeris
|
||||
COPY . .
|
||||
|
||||
# Composer install
|
||||
WORKDIR /home/numeris
|
||||
RUN composer install --no-interaction
|
||||
|
||||
# Final touch
|
||||
# RUN . ~/.bashrc
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN chown -R www-data:www-data /home/numeris
|
||||
RUN chown -R www-data:www-data /var/log/apache2/
|
||||
|
||||
ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
|
||||
|
||||
+12
-10
@@ -1,6 +1,4 @@
|
||||
FROM php:7.2-apache
|
||||
|
||||
RUN mkdir -p /home/numeris
|
||||
FROM php:7.4-apache
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update && apt-get install -y \
|
||||
@@ -8,7 +6,8 @@ RUN apt-get update && apt-get install -y \
|
||||
zip \
|
||||
unzip \
|
||||
nano \
|
||||
libpng-dev
|
||||
libpng-dev \
|
||||
libzip-dev
|
||||
|
||||
# Install the PHP mcrypt pdo_mysql extension
|
||||
RUN docker-php-ext-install pdo_mysql gd zip
|
||||
@@ -16,25 +15,28 @@ RUN docker-php-ext-install pdo_mysql gd zip
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
# Enable apache conf
|
||||
COPY docker/apache/numeris.conf /etc/apache2/sites-available/numeris.conf
|
||||
RUN a2dissite 000-default.conf && a2ensite numeris.conf && a2enmod rewrite && service apache2 restart
|
||||
RUN a2dissite 000-default.conf && \
|
||||
a2ensite numeris.conf && \
|
||||
a2enmod headers && \
|
||||
a2enmod rewrite && \
|
||||
service apache2 restart
|
||||
# Enable php conf
|
||||
COPY docker/php/php.ini /usr/local/etc/php/conf.d/default.ini
|
||||
|
||||
COPY . /home/numeris
|
||||
WORKDIR /home/numeris
|
||||
COPY . .
|
||||
|
||||
### Back config ###
|
||||
WORKDIR /home/numeris
|
||||
RUN composer install --optimize-autoloader --no-dev --no-interaction
|
||||
|
||||
# Final touch
|
||||
RUN . ~/.bashrc
|
||||
RUN apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN chown -R www-data:www-data /home/numeris
|
||||
RUN chown -R www-data:www-data /var/log/apache2/
|
||||
|
||||
WORKDIR /home/numeris
|
||||
|
||||
RUN php artisan config:cache
|
||||
RUN php artisan route:cache
|
||||
|
||||
ENTRYPOINT [ "/home/numeris/entrypoint.sh" ]
|
||||
|
||||
Generated
+2344
-880
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,9 @@
|
||||
# Force HTTPS when X-Forwarded-Proto is passed as HTTPS
|
||||
# Useful when the reverse proxy is in HTTPS
|
||||
SetEnvIf x-forwarded-proto https HTTPS=on
|
||||
# Header set Access-Control-Allow-Origin "*"
|
||||
# Header set Access-Control-Allow-Origin "numeris-isep.fr"
|
||||
Header set Access-Control-Allow-Origin "https://numeris-isep.fr"
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
php artisan key:generate
|
||||
# php artisan key:generate --force
|
||||
php artisan jwt:secret
|
||||
# php artisan jwt:secret --force
|
||||
# php artisan cache:clear
|
||||
php artisan config:clear
|
||||
php artisan migrate:refresh
|
||||
|
||||
docker-php-entrypoint
|
||||
apache2-foreground
|
||||
@@ -1,42 +1,90 @@
|
||||
version: '3'
|
||||
version: "3.9"
|
||||
services:
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
container_name: numeris_phpmyadmin
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:80
|
||||
links:
|
||||
- mysql:db
|
||||
depends_on:
|
||||
- mysql
|
||||
container_name: numeris_phpmyadmin
|
||||
networks:
|
||||
- caddy
|
||||
- mysql
|
||||
labels:
|
||||
caddy: phpmyadmin.numeris-isep.fr
|
||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: 'numeris'
|
||||
container_name: numeris_mysql
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- mysql
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./var/mysql:/var/lib/mysql
|
||||
container_name: numeris_mysql
|
||||
|
||||
back:
|
||||
image: numerisisep/numeris-back
|
||||
container_name: numeris_back
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./back
|
||||
dockerfile: Dockerfile.production
|
||||
environment:
|
||||
APP_ENV: production
|
||||
APP_DEBUG: 'false'
|
||||
DB_CONNECTION: mysql
|
||||
DB_HOST: ${DB_HOST}
|
||||
DB_PORT: ${DB_PORT}
|
||||
DB_DATABASE: ${DB_DATABASE}
|
||||
DB_USERNAME: ${DB_USERNAME}
|
||||
DB_PASSWORD: ${DB_PASSWORD}
|
||||
ports:
|
||||
- ${BACK_PORT}:80
|
||||
links:
|
||||
- mysql
|
||||
networks:
|
||||
- caddy
|
||||
- mysql
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- .env:/home/numeris/.env
|
||||
depends_on:
|
||||
- mysql
|
||||
container_name: numeris_back
|
||||
- mysql
|
||||
labels:
|
||||
caddy: api.numeris-isep.fr
|
||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||
# caddy.reverse_proxy.header_down: -Access-Control-Allow-Origin
|
||||
|
||||
front:
|
||||
image: numerisisep/numeris-front
|
||||
container_name: numeris_front
|
||||
build:
|
||||
context: ./front
|
||||
dockerfile: Dockerfile.production
|
||||
networks:
|
||||
- caddy
|
||||
labels:
|
||||
caddy: numeris-isep.fr
|
||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||
|
||||
|
||||
caddy:
|
||||
image: lucaslorentz/caddy-docker-proxy:ci-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CADDY_INGRESS_NETWORKS: caddy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
# docker rootless daemon socket https://docs.docker.com/engine/security/rootless/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- caddy_data:/data
|
||||
networks:
|
||||
- caddy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "localhost:80"]
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
mysql:
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
mysql:
|
||||
|
||||
@@ -1,14 +1,31 @@
|
||||
version: '3'
|
||||
version: "3.9"
|
||||
services:
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
container_name: numeris_phpmyadmin
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:80
|
||||
links:
|
||||
- mysql:db
|
||||
depends_on:
|
||||
- mysql
|
||||
volumes:
|
||||
- ./var/mysql_testing:/var/lib/mysql
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
container_name: numeris_mysql
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_DATABASE: 'numeris_testing'
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
||||
container_name: numeris_mysql
|
||||
|
||||
back:
|
||||
image: numerisisep/numeris-back
|
||||
container_name: numeris_back
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./back
|
||||
dockerfile: Dockerfile
|
||||
@@ -25,4 +42,15 @@ services:
|
||||
- mysql
|
||||
depends_on:
|
||||
- mysql
|
||||
container_name: numeris_back
|
||||
|
||||
front:
|
||||
image: numerisisep/numeris-front
|
||||
container_name: numeris_front
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./front
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8000:80
|
||||
links:
|
||||
- back
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
.DS_Store
|
||||
node_modules/
|
||||
dist/
|
||||
Dockerfile
|
||||
|
||||
+10
-18
@@ -1,18 +1,10 @@
|
||||
FROM node:11.15.0
|
||||
|
||||
RUN mkdir -p /home/numeris
|
||||
|
||||
ENV PATH /home/numeris/node_modules/.bin:$PATH
|
||||
|
||||
COPY package*.json /home/numeris/
|
||||
|
||||
# npm install
|
||||
WORKDIR /home/numeris
|
||||
RUN npm install
|
||||
RUN npm install -g @angular/cli@7.3.9
|
||||
|
||||
COPY . /home/numeris
|
||||
|
||||
RUN npm rebuild node-sass
|
||||
|
||||
WORKDIR /home/numeris
|
||||
FROM node:11.15.0 as builder
|
||||
WORKDIR /opt/numeris
|
||||
ENV PATH /opt/numeris/node_modules/.bin:$PATH
|
||||
COPY package.json /opt/numeris/
|
||||
COPY yarn.lock /opt/numeris/
|
||||
RUN yarn install
|
||||
# RUN yarn add -g @angular/cli@7.3.9
|
||||
COPY . .
|
||||
RUN yarn run build-prod
|
||||
ENTRYPOINT [ "ng", "serve", "--configuration", "production", "--port", "80", "--host", "0.0.0.0" ]
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
FROM node:11.15.0 as builder
|
||||
WORKDIR /opt/numeris
|
||||
ENV PATH /opt/numeris/node_modules/.bin:$PATH
|
||||
COPY package.json /opt/numeris/
|
||||
COPY yarn.lock /opt/numeris/
|
||||
RUN yarn install
|
||||
# RUN yarn add -g @angular/cli@7.3.9
|
||||
COPY . .
|
||||
RUN yarn run build-prod
|
||||
ENTRYPOINT [ "ng", "serve", "--configuration", "production", "--port", "80" ]
|
||||
|
||||
FROM nginx
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /opt/numeris/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/javascript;
|
||||
gzip_proxied no-cache no-store private expired auth;
|
||||
gzip_min_length 1000;
|
||||
|
||||
listen 80;
|
||||
server_name 0.0.0.0;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Generated
-12862
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -60,6 +60,6 @@
|
||||
"protractor": "~5.4.2",
|
||||
"ts-node": "~8.0.3",
|
||||
"tslint": "~5.14.0",
|
||||
"typescript": "^3.2.4"
|
||||
"typescript": "3.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
+8957
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user