diff --git a/.dockerignore b/.dockerignore index 93f13619916123cf5434dab2ffcc8263c7420af1..5171c54083337f0b87926da2e8f52abefe19d70f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,2 @@ node_modules -npm-debug.log +npm-debug.log \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 7d7888b6287b1d659b3b522c4abe99a19369012a..6af7b0bb2fdc4ce87f7235123ddb39974fa5b249 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3' services: - todoapp: - container_name: todoapp + todoapp1: + container_name: todoapp1 restart: always build: ./ volumes: @@ -14,6 +14,20 @@ services: - NODE_ENV=development - PORT=3000 + todoapp2: + container_name: todoapp2 + restart: always + build: ./ + volumes: + - ./:/var/www/todoapp + links: + - mongo + ports: + - 3001:3000 + environment: + - NODE_ENV=development + - PORT=3000 + mongo: image: mongo container_name: mongo