mirror of
https://github.com/docker/compose.git
synced 2025-07-21 12:44:54 +02:00
Merge pull request #3101 from bfirsh/less-scary-swarm-compose-docs
Better Compose in production docs
This commit is contained in:
commit
9853b876af
@ -12,13 +12,18 @@ weight=22
|
|||||||
|
|
||||||
## Using Compose in production
|
## Using Compose in production
|
||||||
|
|
||||||
> Compose is still primarily aimed at development and testing environments.
|
When you define your app with Compose in development, you can use this
|
||||||
> Compose may be used for smaller production deployments, but is probably
|
definition to run your application in different environments such as CI,
|
||||||
> not yet suitable for larger deployments.
|
staging, and production.
|
||||||
|
|
||||||
When deploying to production, you'll almost certainly want to make changes to
|
The easiest way to deploy an application is to run it on a single server,
|
||||||
your app configuration that are more appropriate to a live environment. These
|
similar to how you would run your development environment. If you want to scale
|
||||||
changes may include:
|
up your application, you can run Compose apps on a Swarm cluster.
|
||||||
|
|
||||||
|
### Modify your Compose file for production
|
||||||
|
|
||||||
|
You'll almost certainly want to make changes to your app configuration that are
|
||||||
|
more appropriate to a live environment. These changes may include:
|
||||||
|
|
||||||
- Removing any volume bindings for application code, so that code stays inside
|
- Removing any volume bindings for application code, so that code stays inside
|
||||||
the container and can't be changed from outside
|
the container and can't be changed from outside
|
||||||
@ -73,8 +78,8 @@ commands will work with no further configuration.
|
|||||||
system, exposes the same API as a single Docker host, which means you can use
|
system, exposes the same API as a single Docker host, which means you can use
|
||||||
Compose against a Swarm instance and run your apps across multiple hosts.
|
Compose against a Swarm instance and run your apps across multiple hosts.
|
||||||
|
|
||||||
Compose/Swarm integration is still in the experimental stage, but if you'd like
|
Read more about the Compose/Swarm integration in the
|
||||||
to explore and experiment, check out the [integration guide](swarm.md).
|
[integration guide](swarm.md).
|
||||||
|
|
||||||
## Compose documentation
|
## Compose documentation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user