wip
This commit is contained in:
parent
6f4fc91bdd
commit
4df7fb61b8
|
@ -0,0 +1,36 @@
|
|||
upstream wordpress {
|
||||
server civi:9000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
root /var/www/civi;
|
||||
client_max_body_size 32m;
|
||||
error_log /dev/stderr info;
|
||||
access_log /dev/stderr;
|
||||
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
proxy_read_timeout 3600;
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
||||
|
||||
fastcgi_pass wordpress;
|
||||
fastcgi_index index.php;
|
||||
}
|
||||
}
|
|
@ -8,22 +8,17 @@ services:
|
|||
- ./env
|
||||
volumes:
|
||||
- civivol:/var/www/civi
|
||||
ports:
|
||||
- "9000:9000"
|
||||
deploy:
|
||||
replicas: 2
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
memory: 500M
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
ports:
|
||||
- "8080:80"
|
||||
networks:
|
||||
- civinet
|
||||
logging:
|
||||
driver: journald
|
||||
|
||||
networks:
|
||||
civinet:
|
||||
|
||||
volumes:
|
||||
civivol:
|
||||
|
|
Loading…
Reference in New Issue