strongloop / strong-pm

deployer for node applications
http://strong-pm.io
Other
1k stars 71 forks source link

Docker Compose #402

Closed ivomarino closed 4 years ago

ivomarino commented 7 years ago

I would like to run strong-pm-container via Docker Compose, in order to define it in a docker-compose.yml, someone has already done this? And furthermore is it possible to enable Dockerized apps using the --driver docker option also when running StrongLoop itself as a Docker container? Thanks.

ivomarino commented 7 years ago

seems to be running this way:

  strong-pm-container:
    image: strongloop/strong-pm
    container_name: strong-pm-container
    restart: always
    user: root
    ports:
      - "8701:8701"
      - "3001:3001"
      # - "3002:3002"
      # - "3003:3003"
    volumes:
      - /data/containers/strong-pm-container/home/strong-pm:/home/strong-pm
      - /var/run/docker.sock:/var/run/docker.sock
    command: --base-port 3000
    # command: --driver docker # This makes troubles yet.
    environment:
      - STRONGLOOP_PM_HTTP_AUTH=xxxxxx:xxxxxx
ivomarino commented 7 years ago

when using --driver docker and try to deploy the example-project I get this issue: pm:docker: error deploying: Error: (HTTP code 400) unexpected - starting container with non-empty request body was deprecated since v1.10 and removed in v1.12, the container for the example app is created but it won't start. Seems something related to Docker API or similar.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding.