Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Docker 18.06.0+ and docker-compose.yml upgrade #52

Open
berehovskyi opened this issue Nov 22, 2018 · 0 comments
Open

Docker 18.06.0+ and docker-compose.yml upgrade #52

berehovskyi opened this issue Nov 22, 2018 · 0 comments

Comments

@berehovskyi
Copy link

It should be mentioned that once you use the current version of the docker-compose.yml file together with Docker 18.06.0+ you may encounter a problem with compatibility. You can fix it by explicitly adding 2 sections:

version: '2.1'
services:

  web:
    build: .
    command: 'bash -c ''node app.js'''
    working_dir: /usr/src/app
    environment:
      PORT: 8050
      NGINX_PORT: 8443
    volumes:
      - './views:/app/user/views:ro'
  nginx:
    build: nginx
    ports:
      - '8080:80'
      - '8443:443'
    links:
      - web:web
    volumes_from:
      - web
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant