Skip to content

Commit

Permalink
whitespace control
Browse files Browse the repository at this point in the history
  • Loading branch information
mleist committed Feb 12, 2024
1 parent bd1e982 commit 4276bbb
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions {{cookiecutter.project_slug}}/docker-compose-production.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
version: "3.7"
# created with cookiecutter for project '{{ cookiecutter.project_name }}'

{% if ( (cookiecutter.enable_postgres == "y") or (cookiecutter.enable_mq == "y") or (cookiecutter.enable_mq_db == "y") ) %}
{%- if ( (cookiecutter.enable_postgres == "y") or (cookiecutter.enable_mq == "y") or (cookiecutter.enable_mq_db == "y") ) %}
volumes:
{% if cookiecutter.enable_postgres == "y" %}
{%- if cookiecutter.enable_postgres == "y" %}
prod_postgres_data: {}
prod_postgres_data_backups: {}
{% endif %}
{% if cookiecutter.enable_mq == "y" %}
{%- endif %}
{%- if cookiecutter.enable_mq == "y" %}
prod_mq_data: {}
prod_mq_log: {}
{% endif %}
{% if cookiecutter.enable_mq_db == "y" %}
{%- endif %}
{%- if cookiecutter.enable_mq_db == "y" %}
prod_mq_db_data: {}
{% endif %}
{% if cookiecutter.enable_spot == "y" %}
{%- endif %}
{%- if cookiecutter.enable_spot == "y" %}
prod_django_static_volume: {}
{% endif %}
{% endif %}
{%- endif %}
{%- endif %}


services:

{% if cookiecutter.enable_mq == "y" %}
{%- if cookiecutter.enable_mq == "y" %}
# ---------------------------------------------------------------------------
mq:
image: '${DOCKER_IMAGE_MQ}'
Expand All @@ -34,7 +34,7 @@ services:
volumes:
- prod_mq_data:/var/lib/rabbitmq
- prod_mq_log:/var/log/rabbitmq
{% endif -%}
{%- endif -%}



Expand All @@ -56,7 +56,7 @@ services:
- mq
- mq_db
- {{cookiecutter.d4service_mq_worker_slug}}
{% endif -%}
{%- endif -%}



Expand All @@ -77,7 +77,7 @@ services:
depends_on:
- mq
- mq_db
{% endif -%}
{%- endif -%}



Expand All @@ -94,7 +94,7 @@ services:
- "${D4SERVICE_MQ_DB_PORT}:${D4SERVICE_MQ_DB_PORT}"
env_file:
- envs/production/mq_db
{% endif -%}
{%- endif -%}



Expand All @@ -112,7 +112,7 @@ services:
- "5432:5432"
env_file:
- envs/production/postgres
{% endif -%}
{%- endif -%}



Expand All @@ -134,7 +134,7 @@ services:
env_file:
- envs/production/proxy
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
{% endif -%}
{%- endif -%}



Expand All @@ -150,7 +150,7 @@ services:
- ./proxy/certbot/www/:/var/www/certbot/:rw
- ./proxy/certbot/conf/:/etc/letsencrypt/:rw
entrypoint: "/bin/sh -c 'trap exit TERM; crond -f'"
{% endif -%}
{%- endif -%}



Expand Down

0 comments on commit 4276bbb

Please sign in to comment.