-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
344 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Ignore everything in this directory | ||
* | ||
# Except this file | ||
!.gitignore | ||
!Readme.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# .docker/data | ||
|
||
Please map persistent volumes to this directory on the servers. | ||
|
||
If a container needs to persist data between restarts you can map the relevant files in the container to ``docker/data/<container-name>`. | ||
|
||
## RabbitMQ example | ||
If you are using RabbitMQ running in a container as a message broker you need to configure a persistent volume for RabbitMQs data directory to avoid losing message on container restarts. | ||
|
||
```yaml | ||
# docker-compose.server.override.yml | ||
|
||
services: | ||
rabbit: | ||
image: rabbitmq:3.9-management-alpine | ||
hostname: "${COMPOSE_PROJECT_NAME}" | ||
networks: | ||
- app | ||
- frontend | ||
environment: | ||
- "RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}" | ||
- "RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}" | ||
- "RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}" | ||
volumes: | ||
- ".docker/data/rabbitmq:/var/lib/rabbitmq/mnesia/" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.