Skip to content

Commit c483738

Browse files
committed
chore: cleanup
1 parent b52af52 commit c483738

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Litestar/Containers/docker-compose.infra.yml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
{% if database.value == "PostgreSQL" %}
33
postgres:
4-
image: postgres:17.7-alpine3.23
4+
image: {{ db_config.docker_image }}
55
container_name: {{ project_slug }}_postgres_dev_db
66
environment:
77
POSTGRES_DB: mydb
@@ -22,7 +22,7 @@ volumes:
2222
{{ project_slug }}_postgres_dev_db: {}
2323
{% elif database.value == "MySQL" %}
2424
mysql:
25-
image: mysql:8.4.8-oraclelinux9
25+
image: {{ db_config.docker_image }}
2626
container_name: {{ project_slug }}_mysql_dev_db
2727
environment:
2828
MYSQL_DATABASE: mydb

src/Litestar/Containers/docker-compose.yml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444

4545
{% if database.value == "PostgreSQL" %}
4646
postgres:
47-
image: postgres:17.7-alpine3.23
47+
image: {{ db_config.docker_image }}
4848
container_name: {{ project_slug }}_postgres_db
4949
environment:
5050
POSTGRES_DB: mydb
@@ -62,7 +62,7 @@ services:
6262
restart: unless-stopped
6363
{% elif database.value == "MySQL" %}
6464
mysql:
65-
image: mysql:8.4.8-oraclelinux9
65+
image: {{ db_config.docker_image }}
6666
container_name: {{ project_slug }}_mysql_db
6767
environment:
6868
MYSQL_DATABASE: mydb

src/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def for_database(cls, db: Database) -> DatabaseConfig | None:
9090
driver="postgresql+psycopg",
9191
port=5432,
9292
default_url="postgresql+psycopg://myuser:mypassword@localhost:5432/mydb",
93-
docker_image="postgres:18.1",
93+
docker_image="postgres:17.7-alpine3.23",
9494
),
9595
Database.SQLITE: cls(
9696
driver="sqlite+aiosqlite",
@@ -102,7 +102,7 @@ def for_database(cls, db: Database) -> DatabaseConfig | None:
102102
driver="mysql+asyncmy",
103103
port=3306,
104104
default_url="mysql+asyncmy://myuser:mypassword@localhost:3306/mydb",
105-
docker_image="mysql:lts-oraclelinux9",
105+
docker_image="mysql:8.4.8-oraclelinux9",
106106
),
107107
}
108108
return configs.get(db)

0 commit comments

Comments
 (0)