Skip to content

Commit 9a44280

Browse files
committed
add mariadb to docker compose
1 parent 8294e20 commit 9a44280

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Set COMPOSE_PROFILES to one of the following: postgres, mysql, mssql. If set to mssql, you will need to change the depends_on propery in docker-compose.yml
2-
COMPOSE_PROFILES=mssql
2+
COMPOSE_PROFILES=mariadb

docker-compose.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,11 @@ services:
3535
interval: 10s
3636
timeout: 3s
3737
retries: 10
38-
start_period: 10s
38+
start_period: 10s
39+
mariadb:
40+
profiles: ["mariadb"]
41+
ports: ["3306:3306"]
42+
image: mariadb
43+
environment:
44+
MYSQL_ROOT_PASSWORD: Password123!
45+
MYSQL_DATABASE: sqlpage

0 commit comments

Comments
 (0)