diff --git a/Dockerfile.mariadb b/Dockerfile.mariadb
index db2eeb3..27c020b 100644
--- a/Dockerfile.mariadb
+++ b/Dockerfile.mariadb
@@ -1,5 +1,5 @@
 ARG MARIADB_VERSION=10.9
-FROM mariadb:$MARIADB_VERSION AS mysql
+FROM mariadb:$MARIADB_VERSION
 SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 ENV DEBIAN_FRONTEND="teletype" \
     TERM=xterm-256color \
diff --git a/Dockerfile.postgres b/Dockerfile.postgres
index 4735d6c..503d150 100644
--- a/Dockerfile.postgres
+++ b/Dockerfile.postgres
@@ -1,5 +1,5 @@
 ARG PGSQL_VERSION
-FROM postgres:$PGSQL_VERSION-alpine AS postgres
+FROM postgres:$PGSQL_VERSION-alpine
 RUN apk add --no-cache runit && \
     apk --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/main add \
       icu-libs \
diff --git a/docker-compose.yml b/docker-compose.yml
index fbbed77..b484c81 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -26,7 +26,6 @@ services:
     build:
       context: .
       dockerfile: Dockerfile.postgres
-      target: postgres
       args:
         PGSQL_VERSION: 14
     environment:
@@ -49,7 +48,6 @@ services:
     image: benzine/mysql:10.9
     build:
       context: .
-      target: mysql
       dockerfile: Dockerfile.mariadb
       args:
         MARIADB_VERSION: 10.9
@@ -75,7 +73,6 @@ services:
     image: benzine/mysql:10.3
     build:
       context: .
-      target: mysql
       dockerfile: Dockerfile.mariadb
       args:
         MARIADB_VERSION: 10.3