mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2026-01-12 19:46:24 +03:00
Add PostgreSQL 18 (#6144)
This commit is contained in:
parent
95a75d3937
commit
2387ab2c51
|
|
@ -129,10 +129,11 @@ Answer the prompts with your own desired [options](http://cookiecutter-django.re
|
|||
Choose from 1, 2, 3 [1]: 1
|
||||
use_docker [n]: n
|
||||
Select postgresql_version:
|
||||
1 - 17
|
||||
2 - 16
|
||||
3 - 15
|
||||
4 - 14
|
||||
1 - 18
|
||||
2 - 17
|
||||
3 - 16
|
||||
4 - 15
|
||||
5 - 14
|
||||
Choose from 1, 2, 3, 4 [1]: 1
|
||||
Select cloud_provider:
|
||||
1 - AWS
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
"windows": "n",
|
||||
"editor": ["None", "PyCharm", "VS Code"],
|
||||
"use_docker": "n",
|
||||
"postgresql_version": ["17", "16", "15", "14"],
|
||||
"postgresql_version": ["18", "17", "16", "15", "14"],
|
||||
"cloud_provider": ["AWS", "GCP", "Azure", "None"],
|
||||
"mail_service": [
|
||||
"Mailgun",
|
||||
|
|
|
|||
|
|
@ -66,10 +66,11 @@ use_docker:
|
|||
postgresql_version:
|
||||
Select a PostgreSQL_ version to use. The choices are:
|
||||
|
||||
1. 17
|
||||
2. 16
|
||||
3. 15
|
||||
4. 14
|
||||
1. 18
|
||||
2. 17
|
||||
3. 16
|
||||
4. 15
|
||||
5. 14
|
||||
|
||||
cloud_provider:
|
||||
Select a cloud provider for static & media files. The choices are:
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ SUPPORTED_COMBINATIONS = [
|
|||
{"editor": "VS Code"},
|
||||
{"use_docker": "y"},
|
||||
{"use_docker": "n"},
|
||||
{"postgresql_version": "18"},
|
||||
{"postgresql_version": "17"},
|
||||
{"postgresql_version": "16"},
|
||||
{"postgresql_version": "15"},
|
||||
|
|
|
|||
|
|
@ -35,7 +35,11 @@ services:
|
|||
image: {{ cookiecutter.project_slug }}_production_postgres
|
||||
container_name: {{ cookiecutter.project_slug }}_local_postgres
|
||||
volumes:
|
||||
{%- if cookiecutter.postgresql_version|int >= 18 %}
|
||||
- {{ cookiecutter.project_slug }}_local_postgres_data:/var/lib/postgresql/{{ cookiecutter.postgresql_version }}/docker
|
||||
{%- else %}
|
||||
- {{ cookiecutter.project_slug }}_local_postgres_data:/var/lib/postgresql/data
|
||||
{%- endif %}
|
||||
- {{ cookiecutter.project_slug }}_local_postgres_data_backups:/backups
|
||||
env_file:
|
||||
- ./.envs/.local/.postgres
|
||||
|
|
|
|||
|
|
@ -47,7 +47,11 @@ services:
|
|||
dockerfile: ./compose/production/postgres/Dockerfile
|
||||
image: {{ cookiecutter.project_slug }}_production_postgres
|
||||
volumes:
|
||||
{%- if cookiecutter.postgresql_version|int >= 18 %}
|
||||
- production_postgres_data:/var/lib/postgresql/{{ cookiecutter.postgresql_version }}/docker
|
||||
{%- else %}
|
||||
- production_postgres_data:/var/lib/postgresql/data
|
||||
{%- endif %}
|
||||
- production_postgres_data_backups:/backups
|
||||
env_file:
|
||||
- ./.envs/.production/.postgres
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user