Browse Source

chor(docker): update docker for v2

upstream-develop
poeti8 1 year ago
parent
commit
b8933edde7
3 changed files with 32 additions and 14 deletions
  1. +2
    -1
      .dockerignore
  2. +3
    -1
      Dockerfile
  3. +27
    -12
      docker-compose.yml

+ 2
- 1
.dockerignore View File

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

+ 3
- 1
Dockerfile 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" ]

+ 27
- 12
docker-compose.yml 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"

Loading…
Cancel
Save