Skip to content

Commit

Permalink
feat: update db image versions in docker compose (#9367)
Browse files Browse the repository at this point in the history
* feat: update db image versions in docker compose

closes #9326

* Fix postgres version

* Upgrade Docker compose versions

* Fix docker compose version
  • Loading branch information
Jacse committed Sep 19, 2022
1 parent f943e61 commit f24b262
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
23 changes: 4 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: "3"
services:

# mysql
mysql:
image: "mysql:5.7.37"
Expand All @@ -13,23 +12,9 @@ services:
MYSQL_PASSWORD: "test"
MYSQL_DATABASE: "test"

# mysql v8
# mysql8:
# image: "mysql:8"
# container_name: "typeorm-mysql8"
# ports:
# - "3308:3306"
# environment:
# MYSQL_ROOT_PASSWORD: "admin"
# MYSQL_USER: "test"
# MYSQL_PASSWORD: "test"
# MYSQL_DATABASE: "test"
# volumes:
# - mysql8_volume:/var/lib/mysql

# mariadb
mariadb:
image: "mariadb:10.5.13"
image: "mariadb:10.8.4"
container_name: "typeorm-mariadb"
ports:
- "3307:3306"
Expand All @@ -44,7 +29,7 @@ services:
# mdillon/postgis is postgres + PostGIS (only). if you need additional
# extensions, it's probably time to create a purpose-built image with all
# necessary extensions. sorry, and thanks for adding support for them!
image: "mdillon/postgis:9.6"
image: "postgis/postgis:14-3.3"
container_name: "typeorm-postgres"
ports:
- "5432:5432"
Expand Down Expand Up @@ -78,7 +63,7 @@ services:

# cockroachdb
cockroachdb:
image: "cockroachdb/cockroach:latest-v21.1"
image: "cockroachdb/cockroach:v22.1.6"
container_name: "typeorm-cockroachdb"
command: start-single-node --insecure --cache=.25 --store=type=mem,size=.25 --logtostderr=NONE --log-dir=""
ports:
Expand Down Expand Up @@ -131,7 +116,7 @@ services:

# mongodb
mongodb:
image: "mongo:5.0.6"
image: "mongo:5.0.12"
container_name: "typeorm-mongodb"
ports:
- "27017:27017"
Expand Down
10 changes: 5 additions & 5 deletions src/commands/InitCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ AppDataSource.initialize().then(async () => {
services:
mysql:
image: "mysql:5.7.10"
image: "mysql:8.0.30"
ports:
- "3306:3306"
environment:
Expand All @@ -540,7 +540,7 @@ services:
services:
mariadb:
image: "mariadb:10.1.16"
image: "mariadb:10.8.4"
ports:
- "3306:3306"
environment:
Expand All @@ -555,7 +555,7 @@ services:
services:
postgres:
image: "postgres:9.6.1"
image: "postgres:14.5"
ports:
- "5432:5432"
environment:
Expand All @@ -569,7 +569,7 @@ services:
services:
cockroachdb:
image: "cockroachdb/cockroach:v2.1.4"
image: "cockroachdb/cockroach:v22.1.6"
command: start --insecure
ports:
- "26257:26257"
Expand Down Expand Up @@ -603,7 +603,7 @@ services:
services:
mongodb:
image: "mongo:4.0.6"
image: "mongo:5.0.12"
container_name: "typeorm-mongodb"
ports:
- "27017:27017"
Expand Down

0 comments on commit f24b262

Please sign in to comment.