Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] deployment/releases functionality #1174

Closed
mahnunchik opened this issue Mar 25, 2015 · 10 comments
Closed

[Feature request] deployment/releases functionality #1174

mahnunchik opened this issue Mar 25, 2015 · 10 comments

Comments

@mahnunchik
Copy link

Hi,

Do you plan to add deployment/releases functionality to the docker-compose?

I mean:

  • Deploying a new version of the service or services specified in the configuration
  • Rolling back to a previous release

If not, could you please recommend a tool for that kind of tasks for small projects without clustering, private registry, and orchestration?

@mahnunchik
Copy link
Author

hey somebody 🐼

@xvik
Copy link

xvik commented Apr 10, 2015

+1

@funkyfuture
Copy link

it may help if you posted some example scenario and usages. posting +1 won't.

@mahnunchik
Copy link
Author

Hi @funkyfuture

For example we have a simple app. We run it with the following docker-compose.yml config:

web:
  build: ./
  ports:
    - "8080:80"
  links:
    - db:DB
  environment:
    MY_AWESOME_ENV: 123
db:
  image: mariadb:latest

By docker-compose command:

$ docker-compose up

It is great for development!


My question is about deployment functionality.

For small projects without private registry usage, it would be enough to have something something like this:

$ docker-compose deploy web

To create the latest image and run it (for example: web_image_201504DDHHMMSS and web_201504DDHHMMSS)

And to have the rollback command:

$ docker-compose rollback web

To start the previous container (or run container from previous image).

@mahnunchik
Copy link
Author

Does anyone know of such a tool?

@funkyfuture
Copy link

i think you're asking for a feature to keep previous containers of a project when recreating. that'd sound reasonable to expect from compose and should be easy to implement when labels are used to handle containers.

you may open a feature request concerning this. this should be discussed before implementation as there are propably different design approaches.

@mahnunchik mahnunchik changed the title [Question] deployment/releases functionality [Feature request] deployment/releases functionality Apr 29, 2015
@aanand
Copy link

aanand commented Apr 29, 2015

Deployment in general is something we need to think about more, yes. There are lots of different scenarios with lots of particular requirements, but I'd like to investigate supporting a simple deployment strategy that'll work for a majority of people.

In particular, this might involve:

  • Tagging of images before deploying them
  • Graceful restarts, updating load balancers
  • Not deleting old containers straight away, but perhaps implementing a "cleanup" command
  • Rollback

@funkyfuture
Copy link

one important apect came across me today: if there is an option to keep a prior container also its volumes should be preserved. for self-contained ones that may be easy and reasonable to support, but it gets tricky with volumes_from and mounted volumes.

@schmel
Copy link

schmel commented Jan 25, 2016

@dnephin
Copy link

dnephin commented Feb 3, 2016

Consolidating all production related issues into #1786

@dnephin dnephin closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants