modify landing page
This commit is contained in:
commit
dd232b1c02
2599 files changed
+226992
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# Dockerfile สำหรับ Joomla โดยใช้ Nginx
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# ติดตั้ง Nginx และ PHP
|
||||
RUN apt-get update && \
|
||||
apt-get install -y nginx php-fpm php-pgsql wget curl
|
||||
|
||||
# ติดตั้ง Joomla
|
||||
RUN wget https://downloads.joomla.org/latest/stable?format=tar.gz -O joomla.tar.gz && \
|
||||
tar -xvzf joomla.tar.gz -C /var/www/html --strip-components=1
|
||||
|
||||
# คัดลอกไฟล์การตั้งค่า Nginx
|
||||
COPY ./nginx/joomla.conf /etc/nginx/sites-available/default
|
||||
|
||||
# เปิดการใช้งาน Nginx และ PHP-FPM
|
||||
CMD service php7.4-fpm start && nginx -g 'daemon off;'
|
||||
|
||||
EXPOSE 80
|
||||
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /var/www/html;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Joomla service
|
||||
joomla:
|
||||
build:
|
||||
context: ./joomla
|
||||
ports:
|
||||
- "8081:80"
|
||||
environment:
|
||||
- DB_HOST=postgres
|
||||
- DB_NAME=joomla
|
||||
- DB_USER=joomla_user
|
||||
- DB_PASSWORD=secret_password
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
# PostgreSQL service
|
||||
postgres:
|
||||
image: postgres:13
|
||||
environment:
|
||||
- POSTGRES_USER=joomla_user
|
||||
- POSTGRES_PASSWORD=secret_password
|
||||
- POSTGRES_DB=joomla
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
# Node.js service
|
||||
nodejs:
|
||||
build:
|
||||
context: ./nodejs
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- DATABASE_URL=postgres://joomla_user:secret_password@postgres:5432/joomla
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
# Go service
|
||||
golang:
|
||||
build:
|
||||
context: ./golang
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- DATABASE_URL=postgres://joomla_user:secret_password@postgres:5432/joomla
|
||||
depends_on:
|
||||
- postgres
|
||||
Reference in new issue
Block a user