update docker image, compose file
This commit is contained in:
parent
09429eb276
commit
74dbd94de8
@ -6,7 +6,7 @@ WORKDIR /usr/app
|
|||||||
|
|
||||||
COPY yarn.lock .
|
COPY yarn.lock .
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN apk update && apk add --no-cache g++ make python3 git openssh && rm -rf /var/cache/apk/*
|
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
|
||||||
RUN yarn install --network-concurrency 2
|
RUN yarn install --network-concurrency 2
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ ENV NODE_ENV=production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache g++ make python3 git openssh && rm -rf /var/cache/apk/*
|
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY --from=dev /usr/app/build /app
|
COPY --from=dev /usr/app/build /app
|
||||||
COPY --from=dev /usr/app/package.json /app/
|
COPY --from=dev /usr/app/package.json /app/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
@ -9,6 +9,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
REDIS_URL: redis://redis/0
|
REDIS_URL: redis://redis/0
|
||||||
nginx_proxy_read_timeout: 600
|
nginx_proxy_read_timeout: 600
|
||||||
|
VIRTUAL_PORT: ${APP_PORT}
|
||||||
depends_on: [redis]
|
depends_on: [redis]
|
||||||
|
|
||||||
worker1:
|
worker1:
|
||||||
@ -68,11 +69,12 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
restart: always
|
restart: always
|
||||||
command: [redis-server, '/usr/local/etc/redis/redis.conf', --appendonly, 'yes']
|
environment:
|
||||||
|
- REDIS_APPENDONLY=yes
|
||||||
|
- REDIS_APPENDFSYNC=always
|
||||||
ports:
|
ports:
|
||||||
- '6379:6379'
|
- '127.0.0.1:6379:6379' # do not expose redis port
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
|
||||||
- redis:/data
|
- redis:/data
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
@ -95,9 +97,11 @@ services:
|
|||||||
container_name: dockergen
|
container_name: dockergen
|
||||||
restart: always
|
restart: always
|
||||||
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||||
volumes_from:
|
|
||||||
- nginx
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- conf:/etc/nginx/conf.d
|
||||||
|
- vhost:/etc/nginx/vhost.d
|
||||||
|
- html:/usr/share/nginx/html
|
||||||
|
- certs:/etc/nginx/certs
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
||||||
letsencrypt:
|
letsencrypt:
|
||||||
@ -106,9 +110,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
NGINX_DOCKER_GEN_CONTAINER: dockergen
|
NGINX_DOCKER_GEN_CONTAINER: dockergen
|
||||||
volumes_from:
|
volumes:
|
||||||
- nginx
|
- conf:/etc/nginx/conf.d
|
||||||
- dockergen
|
- vhost:/etc/nginx/vhost.d
|
||||||
|
- html:/usr/share/nginx/html
|
||||||
|
- certs:/etc/nginx/certs
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
conf:
|
conf:
|
||||||
|
@ -14,12 +14,7 @@ import {
|
|||||||
tornToken,
|
tornToken,
|
||||||
} from '../config';
|
} from '../config';
|
||||||
import { ChainIds, Token } from '../types';
|
import { ChainIds, Token } from '../types';
|
||||||
import {
|
import { getProvider, getTornadoProxyContract, getTornadoProxyLightContract, getTornTokenContract } from '../modules/contracts';
|
||||||
getProvider,
|
|
||||||
getTornadoProxyContract,
|
|
||||||
getTornadoProxyLightContract,
|
|
||||||
getTornTokenContract
|
|
||||||
} from '../modules/contracts';
|
|
||||||
import { resolve } from '../modules';
|
import { resolve } from '../modules';
|
||||||
import { ERC20Abi, ProxyLightABI, TornadoProxyABI } from '../contracts';
|
import { ERC20Abi, ProxyLightABI, TornadoProxyABI } from '../contracts';
|
||||||
import { availableIds, netIds, NetInstances } from 'torn-token';
|
import { availableIds, netIds, NetInstances } from 'torn-token';
|
||||||
|
Loading…
Reference in New Issue
Block a user