-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from bibboxen/feature/maintenance_update
Feature/maintenance update
- Loading branch information
Showing
35 changed files
with
3,410 additions
and
2,125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
server { | ||
listen ${NGINX_PORT}; | ||
server_name localhost; | ||
|
||
root ${NGINX_WEB_ROOT}; | ||
|
||
client_max_body_size ${NGINX_MAX_BODY_SIZE}; | ||
|
||
location / { | ||
# try to serve file directly, fallback to index.php | ||
try_files $uri /index.php$is_args$args; | ||
} | ||
|
||
# Protect files and directories from prying eyes. | ||
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|.tar|.gz|.bz2|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ { | ||
deny all; | ||
return 404; | ||
} | ||
|
||
location ~ ^/index\.php(/|$) { | ||
fastcgi_buffers 16 32k; | ||
fastcgi_buffer_size 64k; | ||
fastcgi_busy_buffers_size 64k; | ||
|
||
fastcgi_pass ${NGINX_FPM_SERVICE}; | ||
fastcgi_split_path_info ^(.+\.php)(/.*)$; | ||
include fastcgi_params; | ||
|
||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; | ||
fastcgi_param DOCUMENT_ROOT $realpath_root; | ||
|
||
internal; | ||
} | ||
|
||
location ~ \.php$ { | ||
return 404; | ||
} | ||
|
||
# Send log message to files symlinked to stdout/stderr. | ||
error_log /dev/stderr; | ||
access_log /dev/stdout main; | ||
} |
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
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.