dmitryg@MacBook-Pro:~/tmp/docker-lamp|master⚡
⇒ ls -la
total 24
drwxr-xr-x 12 dmitryg staff 384 Mar 26 21:14 .
drwxr-xr-x 16 dmitryg staff 512 Mar 26 21:01 ..
drwxr-xr-x 12 dmitryg staff 384 Mar 26 21:19 .git
-rw-r--r-- 1 dmitryg staff 235 Mar 26 21:01 Dockerfile
-rw-r--r-- 1 dmitryg staff 1210 Mar 26 21:01 LICENSE
-rw-r--r-- 1 dmitryg staff 615 Mar 26 21:01 README.md
drwxr-xr-x 3 dmitryg staff 96 Mar 26 21:01 conf
-rw-r--r-- 1 dmitryg staff 1091 Mar 26 21:14 docker-compose.yml
drwxr-xr-x 3 dmitryg staff 96 Mar 26 21:01 dump
-rw-r--r-- 1 dmitryg staff 101 Mar 26 21:12 htaccess
-rw-r--r-- 1 dmitryg staff 47 Mar 26 21:14 htpasswd
drwxr-xr-x 3 dmitryg staff 96 Mar 26 21:01 www
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
ports:
- 8000:80
volumes:
- ./htaccess:/var/www/html/.htaccess
- ./htpasswd:/etc/phpmyadmin/.htpasswd
environment:
MYSQL_USER: user
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user