chor(docker): update docker for v2
This commit is contained in:
parent
f6d566f33d
commit
b8933edde7
|
@ -1,2 +1,3 @@
|
||||||
.git
|
.git
|
||||||
node_modules
|
node_modules
|
||||||
|
production-server
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:10-alpine
|
FROM node:12-alpine
|
||||||
|
|
||||||
# Setting working directory.
|
# Setting working directory.
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
@ -13,5 +13,7 @@ COPY . .
|
||||||
# Building app
|
# Building app
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
# Running the app
|
# Running the app
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
|
@ -4,24 +4,39 @@ services:
|
||||||
kutt:
|
kutt:
|
||||||
build: .
|
build: .
|
||||||
container_name: kutt
|
container_name: kutt
|
||||||
links:
|
depends_on:
|
||||||
- neo4j
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
environment:
|
||||||
|
DB_HOST: postgres
|
||||||
|
DB_NAME: kutt
|
||||||
|
DB_USER: user
|
||||||
|
DB_PASSWORD: pass
|
||||||
|
networks:
|
||||||
|
- kutt-network
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: "redis:alpine"
|
image: redis:alpine
|
||||||
container_name: kutt-redis
|
container_name: redis
|
||||||
expose:
|
networks:
|
||||||
- 6379
|
- kutt-network
|
||||||
|
|
||||||
neo4j:
|
postgres:
|
||||||
image: neo4j:3.5
|
image: postgres:12-alpine
|
||||||
container_name: kutt-neo4j
|
container_name: postgres
|
||||||
environment:
|
environment:
|
||||||
- NEO4J_AUTH=neo4j/test
|
POSTGRES_USER: user
|
||||||
expose:
|
POSTGRES_PASSWORD: pass
|
||||||
- 7687
|
POSTGRES_DB: kutt
|
||||||
|
ports:
|
||||||
|
- "54323:5432"
|
||||||
|
networks:
|
||||||
|
- kutt-network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
kutt-network:
|
||||||
|
driver: "bridge"
|
Loading…
Reference in New Issue