This commit is contained in:
Alexey 2020-01-30 15:29:30 +03:00
parent 08fcfa36cb
commit 0a261626c8
2 changed files with 40 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM node:11
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install && npm cache clean --force
COPY . .
EXPOSE 3000
HEALTHCHECK CMD curl -f http://localhost:3000/
CMD ["npm", "run", "start"]

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: '2'
services:
app:
build: .
restart: always
environment:
VIRTUAL_HOST: trustedaf.poma.in
LETSENCRYPT_HOST: trustedaf.poma.in
nginx_client_max_body_size: 50m
MYSQL_HOST: mysql
env_file: .env
volumes:
- /data/powers/verify_contribution:/app/verify_contribution
mysql:
image: mysql:5.7
restart: always
env_file: .env
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
volumes:
- mysql:/var/lib/mysql
volumes:
mysql:
networks:
default:
external:
name: frontend_default