summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2020-08-11 07:46:48 +0000
committerDavey Shafik <me@daveyshafik.com>2020-08-11 07:47:03 +0000
commit766049e8c502b27238564c8d2445522c4690a031 (patch)
treecf1d16fea83d0ec107211a66c169f16195ba2fec
parent50fbf688b444818334d40dc32c0302e3001d7442 (diff)
downloadphp7-mysql-shim-766049e8c502b27238564c8d2445522c4690a031.zip
php7-mysql-shim-766049e8c502b27238564c8d2445522c4690a031.tar.gz
php7-mysql-shim-766049e8c502b27238564c8d2445522c4690a031.tar.bz2
Add MYSQL_HOST env var
-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