Skip to content

Commit 8baf032

Browse files
author
Andrew Welch
committed
Switch base setup to mariadb
1 parent 492da63 commit 8baf032

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

cms/example.env

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ SITE_NAME=""
1212

1313
# Craft database settings
1414
DB_DRIVER="mysql"
15-
DB_SERVER="localhost"
16-
DB_USER="root"
17-
DB_PASSWORD=""
18-
DB_DATABASE=""
15+
DB_SERVER="mariadb"
16+
DB_USER="project"
17+
DB_PASSWORD="project"
18+
DB_DATABASE="project"
1919
DB_SCHEMA="public"
2020
DB_TABLE_PREFIX=""
2121
DB_PORT=""

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ services:
2121
context: .
2222
dockerfile: ./docker-config/php-dev-craft/Dockerfile
2323
depends_on:
24-
- "postgres"
24+
- "mariadb"
2525
- "redis"
2626
env_file:
2727
*env
2828
expose:
2929
- "9000"
3030
links:
31-
- postgres
31+
- mariadb
3232
- redis
3333
volumes:
3434
- cpresources:/var/www/project/cms/web/cpresources

scripts/example.env.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
# -- GLOBAL settings --
1414

1515
# The database driver for this Craft install ('mysql' or 'pgsql')
16-
GLOBAL_DB_DRIVER="pgsql"
16+
GLOBAL_DB_DRIVER="mysql"
1717

1818
# -- REMOTE settings --
1919

2020
# Remote ssh credentials, [email protected] and Remote SSH Port
21-
REMOTE_SSH_LOGIN="[email protected]"
21+
REMOTE_SSH_LOGIN="REPLACE_ME"
2222
REMOTE_SSH_PORT="22"
2323

2424
# Should we connect to the remote database server via ssh?
2525
REMOTE_DB_USING_SSH="yes"
2626

2727
# Remote database constants; default port for mysql is 3306, default port for postgres is 5432
28-
REMOTE_DB_NAME="devmode"
28+
REMOTE_DB_NAME="REPLACE_ME"
2929
REMOTE_DB_PASSWORD="REPLACE_ME"
30-
REMOTE_DB_USER="devmode"
30+
REMOTE_DB_USER="REPLACE_ME"
3131
REMOTE_DB_HOST="localhost"
3232
REMOTE_DB_PORT="5432"
3333
REMOTE_DB_SCHEMA="public"

0 commit comments

Comments
 (0)