With adminer:fastcgi running
This commit is contained in:
parent
cfb3bbdf60
commit
0757f47966
2 changed files with 57 additions and 30 deletions
|
|
@ -8,10 +8,6 @@ services:
|
|||
env_file: .env
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 3000:5432
|
||||
networks:
|
||||
- internal
|
||||
|
||||
drupal:
|
||||
image: rnsrk/drupal:9.4.7-fpm-alpine-extended
|
||||
|
|
@ -21,9 +17,6 @@ services:
|
|||
depends_on:
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal
|
||||
- external
|
||||
volumes:
|
||||
- drupal-data:/opt/drupal
|
||||
- ./drupal_context/custom-php-settings.ini:/usr/local/etc/php/conf.d/99-custom-settings.ini
|
||||
|
|
@ -39,48 +32,32 @@ services:
|
|||
volumes:
|
||||
- drupal-data:/opt/drupal
|
||||
- ./nginx-conf:/etc/nginx/conf.d
|
||||
networks:
|
||||
- external
|
||||
|
||||
solr:
|
||||
image: solr:8-slim
|
||||
container_name: dlza_solr
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- solr-data:/opt/solr
|
||||
environment:
|
||||
SOLR_JAVA_MEM: "-Xms256M -Xmx512M"
|
||||
ports:
|
||||
- 3002:8983
|
||||
networks:
|
||||
- external
|
||||
|
||||
graphdb:
|
||||
image: rnsrk/graphdb:10.0.2
|
||||
container_name: dlza_graphdb
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./graphdb_context
|
||||
volumes:
|
||||
- graphdb-data:/graphdb/data
|
||||
ports:
|
||||
- 3003:7200
|
||||
networks:
|
||||
- external
|
||||
|
||||
adminer:
|
||||
image: adminer:fastcgi
|
||||
container_name: dlza_adminer
|
||||
restart: always
|
||||
networks:
|
||||
- internal
|
||||
- external
|
||||
|
||||
networks:
|
||||
external:
|
||||
driver: bridge
|
||||
internal:
|
||||
driver: bridge
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
drupal-data:
|
||||
graphdb-data:
|
||||
solr-data:
|
||||
solr-data:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,25 @@ server {
|
|||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name dlza.gnm.de www.dlza.gnm.de;
|
||||
server_name adminer.local;
|
||||
|
||||
index index.php;
|
||||
|
||||
location ~ ^/(index.php)?$ {
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/index.php;
|
||||
fastcgi_param DOCUMENT_ROOT /var/www/html/;
|
||||
fastcgi_pass adminer:9000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name devel.local;
|
||||
|
||||
index index.php index.html index.htm;
|
||||
|
||||
|
|
@ -44,3 +62,35 @@ server {
|
|||
log_not_found off;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name graphdb.local;
|
||||
|
||||
location / {
|
||||
proxy_pass http://graphdb:7200;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name solr.local;
|
||||
|
||||
location / {
|
||||
proxy_pass http://solr:8983;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue