Skip to content

Commit

Permalink
add phpmyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-byte committed Jan 15, 2024
1 parent 3171137 commit a3bf989
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ services:

environment:
LOCAL_DIR: ${LOCAL_DIR-src}
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
LOCAL_DB_TYPE: ${LOCAL_DB_TYPE-mysql}

volumes:
- ./tools/local-env/default.template:/etc/nginx/conf.d/default.template
Expand Down Expand Up @@ -135,6 +137,21 @@ services:
php:
condition: service_started


phpmyadmin:
image: phpmyadmin
restart: always
networks:
- wpdevnet
ports:
- 8081:80
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: password
depends_on:
- mysql

volumes:
# So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume.
mysql: {}
Expand Down

0 comments on commit a3bf989

Please sign in to comment.