「🏗️」 wip: work in progress, not done yet.
This commit is contained in:
26
srcs/configs/nginx/templates/test.conf.template
Normal file
26
srcs/configs/nginx/templates/test.conf.template
Normal file
@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
|
||||
server_name _;
|
||||
|
||||
root /var/www/wordpress;
|
||||
index index.php;
|
||||
|
||||
ssl_certificate $NGINX_SSL_CERT_FILE;
|
||||
ssl_certificate_key $NGINX_SSL_KEY_FILE;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_session_timeout 10m;
|
||||
|
||||
keepalive_timeout 60;
|
||||
|
||||
location / {
|
||||
try_files $${q}uri $${q}uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass $NGINX_PHP_HOST:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi.conf;
|
||||
}
|
||||
}
|
@ -65,7 +65,7 @@ services:
|
||||
- ./configs/nginx/entry:/docker-entrypoint.d
|
||||
- nginx-certs:/etc/nginx/ssl
|
||||
ports:
|
||||
- "443:443"
|
||||
- "8443:443"
|
||||
restart: unless-stopped
|
||||
|
||||
wordpress-php:
|
||||
@ -110,10 +110,10 @@ services:
|
||||
networks:
|
||||
- inception
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/root-db-pass
|
||||
- MYSQL_PASSWORD_FILE=/run/secrets/user-db-pass
|
||||
- MYSQL_USER=${DB_USER}
|
||||
- MYSQL_DATABASE=${DB_NAME}
|
||||
- MYSQL_ROOT_PASSWORD=alpine
|
||||
- MYSQL_PASSWORD=alpine
|
||||
- MYSQL_USER=kanel
|
||||
- MYSQL_DATABASE=knl
|
||||
volumes:
|
||||
- wp-db:/var/lib/mysql
|
||||
secrets:
|
||||
@ -196,7 +196,7 @@ services:
|
||||
volumes:
|
||||
- wp-site:/var/ftp
|
||||
ports:
|
||||
- 21:21
|
||||
- 2100:21
|
||||
- 30000-30100:30000-30100
|
||||
secrets:
|
||||
- ftp-pass
|
||||
|
@ -44,4 +44,4 @@ WORKDIR /var/lib/mysql
|
||||
|
||||
EXPOSE 3306
|
||||
CMD [ "mariadbd", "--user=mysql" ]
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=5s --start-interval=2s CMD /docker-healthcheck
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=8s --start-interval=2s CMD /docker-healthcheck
|
||||
|
Reference in New Issue
Block a user