summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.devcontainer/docker-compose.yml25
1 files changed, 14 insertions, 11 deletions
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml
index 89c0d4f..9ca7a4a 100644
--- a/.devcontainer/docker-compose.yml
+++ b/.devcontainer/docker-compose.yml
@@ -30,15 +30,18 @@ services:
links:
- mariadb
+ environment:
+ MYSQL_HOST: mariadb
+
mariadb:
- image: mariadb:10.4
- expose:
- # Expose mariadb port to php service (Access as hostname "mariadb" from within php container)
- - "3306"
- # Uncomment to allow access to mariadb from external tools
- # ports:
- # - "3306:3306"
- restart: unless-stopped
- environment:
- MYSQL_ALLOW_EMPTY_PASSWORD: 1
- MYSQL_DATABASE: shim_test
+ image: mariadb:10.4
+ expose:
+ # Expose mariadb port to php service (Access as hostname "mariadb" from within php container)
+ - "3306"
+ # Uncomment to allow access to mariadb from external tools
+ # ports:
+ # - "3306:3306"
+ restart: unless-stopped
+ environment:
+ MYSQL_ALLOW_EMPTY_PASSWORD: 1
+ MYSQL_DATABASE: shim_test