1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

add pgadmin4

This commit is contained in:
kev 2022-01-20 16:20:33 +08:00
parent b691be8e70
commit c66bb5d373
7 changed files with 58 additions and 5 deletions

View File

@ -397,6 +397,7 @@ A collection of delicious docker recipes.
- [x] outlinewiki/outline
- [x] gabekangas/owncast
- [x] owncloud
- [x] dpage/pgadmin4
- [x] phpmyadmin
- [x] pihole/pihole
- [x] mcr.microsoft.com/playwright

View File

@ -32,6 +32,9 @@ $ curl http://127.0.0.1:8080/nifi/
$ curl http://127.0.0.1:18080/nifi-registry/
```
> I copied config files from a temporary container. Maybe there are better ways.
Maybe there are better ways to populate a volume:
- named volumes
- anonymous volumes
[1]: https://nifi.apache.org

View File

@ -1,7 +1,7 @@
version: "3.8"
services:
nifi:
image: apache/nifi:1.15.1
image: apache/nifi:1.15.3
ports:
- "8080:8080"
- "8082:8082"

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
nifi:
image: apache/nifi:1.15.1
image: apache/nifi:1.15.3
ports:
- "8080:8080"
volumes:
@ -17,14 +17,15 @@ services:
- ./data/nifi/logs:/opt/nifi/nifi-current/logs
environment:
- NIFI_WEB_HTTP_PORT=8080
- NIFI_SENSITIVE_PROPS_KEY=00000000-0000-0000-0000-000000000000
- NIFI_JVM_HEAP_INIT=8g
- NIFI_JVM_HEAP_MAX=16g
- SINGLE_USER_CREDENTIALS_USERNAME=admin
- SINGLE_USER_CREDENTIALS_PASSWORD=admin
hostname: nifi
restart: unless-stopped
registry:
image: apache/nifi-registry:1.15.1
image: apache/nifi-registry:1.15.3
ports:
- "18080:18080"
volumes:

2
pgadmin4/README.md Normal file
View File

@ -0,0 +1,2 @@
pgadmin4
========

View File

@ -0,0 +1,16 @@
version: "3.8"
services:
pgadmin4:
image: dpage/pgadmin4
ports:
- "5050:80"
volumes:
- data:/var/lib/pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@gmail.com
- PGADMIN_DEFAULT_PASSWORD=******
restart: unless-stopped
volumes:
data:

30
pgadmin4/nginx.conf Normal file
View File

@ -0,0 +1,30 @@
#
# https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
#
server {
listen 80;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name _;
ssl_certificate /etc/nginx/server.cert;
ssl_certificate_key /etc/nginx/server.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header X-Script-Name /;
proxy_set_header X-Scheme $scheme;
proxy_set_header Host $host;
proxy_pass http://localhost:5050/;
proxy_redirect off;
}
}