diff --git a/docs/deployment-with-docker.rst b/docs/deployment-with-docker.rst index 0115e3a4..b2166824 100644 --- a/docs/deployment-with-docker.rst +++ b/docs/deployment-with-docker.rst @@ -73,7 +73,7 @@ You can read more about this here at `Automatic HTTPS`_ in the Caddy docs. (Optional) Postgres Data Volume Modifications --------------------------------------------- -Postgres is saving its database files to the ``postgres_data`` volume by default. Change that if you want something else and make sure to make backups since this is not done automatically. +Postgres is saving its database files to the ``production_postgres_data`` volume by default. Change that if you want something else and make sure to make backups since this is not done automatically. Building & Running Production Stack diff --git a/docs/developing-locally-docker.rst b/docs/developing-locally-docker.rst index c6af1d96..08b25f3b 100644 --- a/docs/developing-locally-docker.rst +++ b/docs/developing-locally-docker.rst @@ -91,8 +91,8 @@ This is the excerpt from your project's ``local.yml``: :: context: . dockerfile: ./compose/production/postgres/Dockerfile volumes: - - postgres_data_local:/var/lib/postgresql/data - - postgres_backup_local:/backups + - local_postgres_data:/var/lib/postgresql/data + - local_postgres_data_backups:/backups env_file: - ./.envs/.local/.postgres diff --git a/{{cookiecutter.project_slug}}/local.yml b/{{cookiecutter.project_slug}}/local.yml index 41808e60..36638932 100644 --- a/{{cookiecutter.project_slug}}/local.yml +++ b/{{cookiecutter.project_slug}}/local.yml @@ -1,8 +1,8 @@ version: '3' volumes: - postgres_data_local: {} - postgres_backup_local: {} + local_postgres_data: {} + local_postgres_data_backups: {} services: django:{% if cookiecutter.use_celery == 'y' %} &django{% endif %} @@ -30,8 +30,8 @@ services: dockerfile: ./compose/production/postgres/Dockerfile image: {{ cookiecutter.project_slug }}_production_postgres volumes: - - postgres_data_local:/var/lib/postgresql/data - - postgres_backup_local:/backups + - local_postgres_data:/var/lib/postgresql/data + - local_postgres_data_backups:/backups env_file: - ./.envs/.local/.postgres {%- if cookiecutter.use_mailhog == 'y' %} diff --git a/{{cookiecutter.project_slug}}/production.yml b/{{cookiecutter.project_slug}}/production.yml index edcc7e7b..fd8388ac 100644 --- a/{{cookiecutter.project_slug}}/production.yml +++ b/{{cookiecutter.project_slug}}/production.yml @@ -1,9 +1,9 @@ version: '3' volumes: - postgres_data: {} - postgres_backup: {} - caddy: {} + production_postgres_data: {} + production_postgres_data_backups: {} + production_caddy: {} services: django:{% if cookiecutter.use_celery == 'y' %} &django{% endif %} @@ -25,8 +25,8 @@ services: dockerfile: ./compose/production/postgres/Dockerfile image: {{ cookiecutter.project_slug }}_production_postgres volumes: - - postgres_data:/var/lib/postgresql/data - - postgres_backup:/backups + - production_postgres_data:/var/lib/postgresql/data + - production_postgres_data_backups:/backups env_file: - ./.envs/.production/.postgres @@ -38,7 +38,7 @@ services: depends_on: - django volumes: - - caddy:/root/.caddy + - production_caddy:/root/.caddy env_file: - ./.envs/.production/.caddy ports: