Browse Source

* close pma & inblucket ports

+ auth and example nginx config for local phpmyadmin service
master
WP Studio 5 months ago
parent
commit
dc3b0a76a7
  1. 1
      .gitignore
  2. 14
      config/nginx/conf.d/z-pma.conf.example
  3. 5
      config/nginx/includes.d/auth.conf
  4. 9
      docker-compose.base.yml

1
.gitignore

@ -6,3 +6,4 @@
/docker-compose.nodejs.yml /docker-compose.nodejs.yml
/.env /.env
/*.komodoproject /*.komodoproject
/config/nginx/includes.d/auth.passwd

14
config/nginx/conf.d/z-pma.conf.example

@ -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

@ -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

9
docker-compose.base.yml

@ -1,5 +1,3 @@
version: '3.6'
services: services:
nginx: nginx:
image: nginx image: nginx
@ -50,8 +48,6 @@ services:
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: 123456 MYSQL_ROOT_PASSWORD: 123456
ports:
- "3306:3306"
volumes: volumes:
- database:/var/lib/mysql - database:/var/lib/mysql
- ./hostfiles:/hostfiles - ./hostfiles:/hostfiles
@ -64,14 +60,9 @@ services:
PMA_HOST: db PMA_HOST: db
PMA_USER: root PMA_USER: root
PMA_PASSWORD: 123456 PMA_PASSWORD: 123456
ports:
- "81:80"
inbucket: inbucket:
image: inbucket/inbucket image: inbucket/inbucket
restart: always restart: always
ports:
- "2500:2500"
- "82:9000"
redis: redis:
image: redis image: redis
restart: always restart: always

Loading…
Cancel
Save