updated database service
This commit is contained in:
@@ -21,7 +21,7 @@ LOG_DEPRECATIONS_CHANNEL=null
|
|||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=mysql
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=db
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=humicpro_cetaksuratkp
|
DB_DATABASE=humicpro_cetaksuratkp
|
||||||
DB_USERNAME=humicpro_cetaksuratkp
|
DB_USERNAME=humicpro_cetaksuratkp
|
||||||
|
|||||||
+9
-8
@@ -14,9 +14,9 @@ services:
|
|||||||
APP_DEBUG: ${APP_DEBUG:-false}
|
APP_DEBUG: ${APP_DEBUG:-false}
|
||||||
APP_URL: ${APP_URL}
|
APP_URL: ${APP_URL}
|
||||||
|
|
||||||
DB_CONNECTION: pgsql
|
DB_CONNECTION: mariadb
|
||||||
DB_HOST: db
|
DB_HOST: db
|
||||||
DB_PORT: 5432
|
DB_PORT: 3306
|
||||||
|
|
||||||
DB_DATABASE: ${DB_DATABASE}
|
DB_DATABASE: ${DB_DATABASE}
|
||||||
DB_USERNAME: ${DB_USERNAME}
|
DB_USERNAME: ${DB_USERNAME}
|
||||||
@@ -45,19 +45,20 @@ services:
|
|||||||
- app
|
- app
|
||||||
|
|
||||||
# ==========================================
|
# ==========================================
|
||||||
# 3. Database (Custom PostgreSQL)
|
# 3. Database (MariaDB)
|
||||||
# ==========================================
|
# ==========================================
|
||||||
db:
|
db:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/postgres.Dockerfile
|
dockerfile: docker/mariadb.Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${DB_DATABASE}
|
MYSQL_DATABASE: ${DB_DATABASE}
|
||||||
POSTGRES_USER: ${DB_USERNAME}
|
MYSQL_USER: ${DB_USERNAME}
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||||
|
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- db_data:/var/lib/mysql
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
|
|||||||
+1
-2
@@ -28,10 +28,9 @@ RUN apk add --no-cache \
|
|||||||
unzip \
|
unzip \
|
||||||
git \
|
git \
|
||||||
oniguruma-dev \
|
oniguruma-dev \
|
||||||
postgresql-dev \
|
|
||||||
$PHPIZE_DEPS \
|
$PHPIZE_DEPS \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install pdo pdo_pgsql mbstring zip exif pcntl gd opcache
|
&& docker-php-ext-install pdo pdo_mysql mbstring zip exif pcntl gd opcache
|
||||||
|
|
||||||
COPY docker/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
COPY docker/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
FROM postgres:15-alpine
|
FROM mariadb:10.6
|
||||||
|
|
||||||
COPY docker/humicpro_cetaksuratkp.sql /docker-entrypoint-initdb.d/
|
COPY docker/humicpro_cetaksuratkp.sql /docker-entrypoint-initdb.d/
|
||||||
Reference in New Issue
Block a user