* close pma & inblucket ports
+ auth and example nginx config for local phpmyadmin service
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@
|
||||
!/docker-compose*.example
|
||||
/docker-compose.nodejs.yml
|
||||
/.env
|
||||
/*.komodoproject
|
||||
/*.komodoproject
|
||||
/config/nginx/includes.d/auth.passwd
|
14
config/nginx/conf.d/z-pma.conf.example
Normal file
14
config/nginx/conf.d/z-pma.conf.example
Normal file
@ -0,0 +1,14 @@
|
||||
server {
|
||||
server_name pma.e2e.10ballov.ru;
|
||||
listen 80;
|
||||
include includes.d/auth.conf;
|
||||
client_max_body_size 300M;
|
||||
location / {
|
||||
#resolver 127.0.0.11;
|
||||
proxy_pass http://pma;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
}
|
5
config/nginx/includes.d/auth.conf
Normal file
5
config/nginx/includes.d/auth.conf
Normal file
@ -0,0 +1,5 @@
|
||||
set $auth_basic Restricted;
|
||||
auth_basic $auth_basic;
|
||||
auth_basic_user_file includes.d/auth.passwd;
|
||||
# Use openssl for generate basic password
|
||||
# echo "MYUSER:$(openssl passwd -apr1 PASSWORD)" > auth.passwd
|
@ -1,5 +1,3 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
@ -50,8 +48,6 @@ services:
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: 123456
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- database:/var/lib/mysql
|
||||
- ./hostfiles:/hostfiles
|
||||
@ -64,14 +60,9 @@ services:
|
||||
PMA_HOST: db
|
||||
PMA_USER: root
|
||||
PMA_PASSWORD: 123456
|
||||
ports:
|
||||
- "81:80"
|
||||
inbucket:
|
||||
image: inbucket/inbucket
|
||||
restart: always
|
||||
ports:
|
||||
- "2500:2500"
|
||||
- "82:9000"
|
||||
redis:
|
||||
image: redis
|
||||
restart: always
|
||||
|
Reference in New Issue
Block a user