Last active
December 23, 2021 15:27
-
-
Save diogoko/621ceba223a1404de0c6bd12d1ed4f04 to your computer and use it in GitHub Desktop.
Revisions
-
diogoko revised this gist
Jul 2, 2021 . 2 changed files with 29 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ version: "3" services: phpmyadmin: image: "phpmyadmin:5" ports: - "${FORWARD_PHPMYADMIN_PORT:-8888}:80" environment: PMA_HOST: "mysql" PMA_USER: "${DB_USERNAME}" PMA_PASSWORD: "${DB_PASSWORD}" PMA_ABSOLUTE_URI: "http://localhost:${FORWARD_PHPMYADMIN_PORT:-8888}/" volumes: - "sailphpmyadmin:/sessions" networks: - sail volumes: sailphpmyadmin: driver: local This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ # Quick start Download `docker-compose.override.yml` shown below to your project's directory. # Slower start If you prefer you can edit the existing `docker-compose.yml`. Add a new service: ```yaml @@ -27,4 +35,6 @@ volumes: driver: local ``` # Usage After running `sail up`, phpMyAdmin will be available at http://localhost:8888/. The port may be changed by setting the `FORWARD_PHPMYADMIN_PORT` environment variable. -
diogoko renamed this gist
Jul 2, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
diogoko created this gist
Jul 2, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ Add a new service: ```yaml services: ... phpmyadmin: image: 'phpmyadmin:5' ports: - '${FORWARD_PHPMYADMIN_PORT:-8888}:80' environment: PMA_HOST: 'mysql' PMA_USER: '${DB_USERNAME}' PMA_PASSWORD: '${DB_PASSWORD}' PMA_ABSOLUTE_URI: 'http://localhost:${FORWARD_PHPMYADMIN_PORT:-8888}/' volumes: - 'sailphpmyadmin:/sessions' networks: - sail ``` Add a new volume to store the session state: ```yaml volumes: ... sailphpmyadmin: driver: local ``` After running `sail up`, phpMyAdmin will be available at http://localhost:8888/. The port may be changed by setting the `FORWARD_PHPMYADMIN_PORT` environment variable.