Skip to content

Commit 6f479ea

Browse files
rename docker compose files (#71)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ef88b7d commit 6f479ea

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2121

2222
- Now using v2 of `1password/load-secrets-action` GitHub Action.
2323
- Now using v0.3.2 of `ruff` in pre-commit.
24+
- Shortened all `docker-compose*.yml` files to `compose*.yml` files. This is the recommended file naming scheme now.
2425

2526
### Removed
2627

examples/default/default/settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
DISABLE_SERVER_SIDE_CURSORS := env.bool("DISABLE_SERVER_SIDE_CURSORS", default=True)
6969
):
7070
DATABASES["default"]["DISABLE_SERVER_SIDE_CURSORS"] = DISABLE_SERVER_SIDE_CURSORS
71-
DATABASES[EMAIL_RELAY_DATABASE_ALIAS][
72-
"DISABLE_SERVER_SIDE_CURSORS"
73-
] = DISABLE_SERVER_SIDE_CURSORS
71+
DATABASES[EMAIL_RELAY_DATABASE_ALIAS]["DISABLE_SERVER_SIDE_CURSORS"] = (
72+
DISABLE_SERVER_SIDE_CURSORS
73+
)
7474
DATABASES[EMAIL_RELAY_DATABASE_ALIAS]["TEST"] = {"MIRROR": "default"}
7575

7676
DATABASE_ROUTERS = [

examples/with_vite/pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ tag = false
77
version_pattern = "YYYY.MM.INC1"
88

99
[tool.bumpver.file_patterns]
10-
"with_vite/__init__.py" = [
11-
'__version__ = "{version}"'
12-
]
1310
"tests/test_version.py" = [
1411
'assert __version__ == "{version}"'
1512
]
13+
"with_vite/__init__.py" = [
14+
'__version__ = "{version}"'
15+
]
1616

1717
[tool.coverage.report]
1818
exclude_lines = [

examples/with_vite/with_vite/settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
DISABLE_SERVER_SIDE_CURSORS := env.bool("DISABLE_SERVER_SIDE_CURSORS", default=True)
6969
):
7070
DATABASES["default"]["DISABLE_SERVER_SIDE_CURSORS"] = DISABLE_SERVER_SIDE_CURSORS
71-
DATABASES[EMAIL_RELAY_DATABASE_ALIAS][
72-
"DISABLE_SERVER_SIDE_CURSORS"
73-
] = DISABLE_SERVER_SIDE_CURSORS
71+
DATABASES[EMAIL_RELAY_DATABASE_ALIAS]["DISABLE_SERVER_SIDE_CURSORS"] = (
72+
DISABLE_SERVER_SIDE_CURSORS
73+
)
7474
DATABASES[EMAIL_RELAY_DATABASE_ALIAS]["TEST"] = {"MIRROR": "default"}
7575

7676
DATABASE_ROUTERS = [

src/django_twc_project/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,6 @@ mediafiles/
189189

190190
# pyright config for nvim-lspconfig
191191
pyrightconfig.json
192+
193+
# docker
194+
compose.override.yml

src/django_twc_project/docker-compose.yml.jinja src/django_twc_project/compose.yml.jinja

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ services:
3333
POSTGRES_DB: postgres
3434
POSTGRES_PASSWORD: postgres
3535
POSTGRES_USER: postgres
36+
ports:
37+
- "${POSTGRES_PORT:-5432}:5432"
38+
healthcheck:
39+
test: "exit 0"
3640
volumes:
3741
- postgres-data:/var/lib/postgresql/data
3842
- .:/app

0 commit comments

Comments
 (0)