mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-24 19:05:30 +01:00
docker
This commit is contained in:
parent
08fcfa36cb
commit
0a261626c8
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
30
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user