mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented postgress
This commit is contained in:
@@ -4,7 +4,7 @@ upstream mybb {
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
error_log stderr debug;
|
||||
root /var/www/html;
|
||||
index index.html index.php;
|
||||
|
||||
@@ -28,5 +28,17 @@ server {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
|
||||
# proxy timeouts
|
||||
proxy_connect_timeout 300s;
|
||||
proxy_send_timeout 300s;
|
||||
proxy_read_timeout 300s;
|
||||
send_timeout 300s;
|
||||
|
||||
# fastcgi timeouts
|
||||
fastcgi_read_timeout 300s;
|
||||
fastcgi_send_timeout 300s;
|
||||
fastcgi_connect_timeout 300s;
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,10 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
application:
|
||||
logging:
|
||||
driver: journald
|
||||
options:
|
||||
tag: "mybb_application"
|
||||
image: mybb/mybb:latest
|
||||
restart: always
|
||||
links:
|
||||
@@ -11,6 +14,8 @@ services:
|
||||
server:
|
||||
logging:
|
||||
driver: journald
|
||||
options:
|
||||
tag: "mybb_server"
|
||||
links:
|
||||
- application
|
||||
image: nginx:mainline
|
||||
@@ -23,20 +28,15 @@ services:
|
||||
database:
|
||||
logging:
|
||||
driver: journald
|
||||
image: mariadb
|
||||
options:
|
||||
tag: "mybb_database"
|
||||
environment:
|
||||
MYSQL_DATABASE: "mybb"
|
||||
MYSQL_USER: "mybb"
|
||||
MYSQL_PASSWORD: "{{mybb_database_password}}"
|
||||
MARIADB_ROOT_PASSWORD: "{{mybb_database_password}}"
|
||||
MARIADB_AUTO_UPGRADE: "1"
|
||||
POSTGRES_DB: mybb
|
||||
POSTGRES_PASSWORD: "{{mybb_database_password}}"
|
||||
POSTGRES_USER: mybb
|
||||
image: postgres:14-alpine
|
||||
volumes:
|
||||
- database:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: "/usr/bin/mariadb --user=mybb --password={{mybb_database_password}} --execute \"SHOW DATABASES;\""
|
||||
interval: 3s
|
||||
timeout: 1s
|
||||
retries: 5
|
||||
- ${PWD}/postgres/data:/var/lib/postgresql/data:rw
|
||||
restart: always
|
||||
volumes:
|
||||
database:
|
||||
|
Reference in New Issue
Block a user