chor(docker): update docker for v2

This commit is contained in:
poeti8 2019-10-22 17:56:55 +03:30
parent f6d566f33d
commit b8933edde7
3 changed files with 32 additions and 14 deletions

View File

@ -1,2 +1,3 @@
.git
node_modules
node_modules
production-server

View File

@ -1,4 +1,4 @@
FROM node:10-alpine
FROM node:12-alpine
# Setting working directory.
WORKDIR /usr/src/app
@ -13,5 +13,7 @@ COPY . .
# Building app
RUN npm run build
EXPOSE 3000
# Running the app
CMD [ "npm", "start" ]

View File

@ -4,24 +4,39 @@ services:
kutt:
build: .
container_name: kutt
links:
- neo4j
depends_on:
- postgres
- redis
ports:
- "3000:3000"
env_file:
- .env
environment:
DB_HOST: postgres
DB_NAME: kutt
DB_USER: user
DB_PASSWORD: pass
networks:
- kutt-network
redis:
image: "redis:alpine"
container_name: kutt-redis
expose:
- 6379
image: redis:alpine
container_name: redis
networks:
- kutt-network
neo4j:
image: neo4j:3.5
container_name: kutt-neo4j
postgres:
image: postgres:12-alpine
container_name: postgres
environment:
- NEO4J_AUTH=neo4j/test
expose:
- 7687
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: kutt
ports:
- "54323:5432"
networks:
- kutt-network
networks:
kutt-network:
driver: "bridge"