Merge pull request #12 from tmshv/fix/rm-conf

rm old configs
This commit is contained in:
tmshv authored and GitHub committed 2020-02-17 20:03:29 +03:00
commit 491ac743b5
5 files changed
-122

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
.git
.next
.idea
.env
node_modules
# dist
services
modules
utils
-18
View File
@@ -1,18 +0,0 @@
pipeline:
build:
image: docker
commands:
- docker build -t tmshv/hudozka:latest -t tmshv/hudozka:build-${DRONE_BUILD_NUMBER} .
- docker save -o hudozka-docker_container${DRONE_BUILD_NUMBER}.tar tmshv/hudozka:build-${DRONE_BUILD_NUMBER}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
scp:
image: appleboy/drone-scp
host: art.shlisselburg.org
username: master
target: ~/Hudozka
source: hudozka-docker_container${DRONE_BUILD_NUMBER}.tar
secrets: [scp_key]
when:
branch: master
-48
View File
@@ -1,48 +0,0 @@
# # Build
# FROM node:10 as build
# WORKDIR /app
# COPY package.json package-lock.json ./
# RUN npm i
# COPY webpack.config.js gulpfile.js .babelrc ./
# COPY robots.txt ./
# COPY src ./src
# RUN npm run gulp
# RUN npm run build-app
# RUN npm run out
# # Run
# FROM node:8-alpine
# WORKDIR /app
# COPY package.json package-lock.json ./
# RUN npm i --production
# COPY --from=build /app/out ./src
# COPY --from=build /app/public ./public
# EXPOSE 3000
# CMD npm start
# FROM node:12-alpine as build
# WORKDIR /app
# COPY package.json package-lock.json ./
# RUN npm ci
# COPY . .
# RUN npm run build
# RUN npm run start & npm run export
# Run
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
WORKDIR /usr/share/nginx/html
# COPY --from=build /app/dist /usr/share/nginx/html
COPY ./dist /usr/share/nginx/html
-30
View File
@@ -1,30 +0,0 @@
version: '3'
volumes:
data:
services:
mongo:
image: mongo:3.6
restart: always
volumes:
- data:/data/db
ports:
- "1817:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=hudozka
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_HUDOZKA_PASSWORD}
app:
restart: always
depends_on:
- mongo
build:
context: ./
dockerfile: Dockerfile
links:
- mongo
ports:
- "1880:3000"
environment:
- DB_URI=${HUDOZKA_DB_URI}
-16
View File
@@ -1,16 +0,0 @@
server {
listen 80;
server_name localhost;
charset utf-8;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri.html $uri/index.html =404;
}
location = /50x.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
}