chor(docker): update docker for v2
This commit is contained in:
parent
f6d566f33d
commit
b8933edde7
|
@ -1,2 +1,3 @@
|
|||
.git
|
||||
node_modules
|
||||
node_modules
|
||||
production-server
|
|
@ -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" ]
|
|
@ -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"
|
Loading…
Reference in New Issue