Commit 427ceeaa authored by ashit.gajwani's avatar ashit.gajwani

Initial commit

parents
Pipeline #293 failed with stages
FROM php:8.0-fpm
RUN apt-get update && \
apt-get install -y \
git \
zip \
curl \
libicu-dev
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install mysqli
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# nginx configuration
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root /code/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
#fastcgi_keep_conn on;
fastcgi_pass app_application:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
version: '3.7'
services:
########################################
##### NginX Web Server #####
########################################
app_webserver:
environment:
VIRTUAL_HOST: 'local.dashboard-app.climate-connect.com'
VIRTUAL_PROTO: 'http'
version: '3.7'
services:
########################################
##### NginX Web Server #####
########################################
app_webserver:
environment:
VIRTUAL_HOST: 'learn.dashboard-app.climate-connect.com'
LETSENCRYPT_HOST: 'learn.dashboard-app.climate-connect.com'
VIRTUAL_PROTO: 'https'
version: '3.7'
services:
########################################
##### SQL Server - MySQLDB #####
########################################
app_sqldb:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'development_instance_root_password'
MYSQL_DATABASE: 'app_database'
MYSQL_USER: 'app_user'
MYSQL_PASSWORD: 'development_instance_password'
TZ: 'Asia/Kolkata'
volumes:
- app_mysql_volume:/var/lib/mysql
networks:
- common
########################################
##### PHP-FPM Application Server #####
########################################
app_application:
build:
context: .
dockerfile: ./config/PHP-FPM.Dockerfile
restart: always
links:
- app_sqldb
environment:
TZ: 'Asia/Kolkata'
volumes:
- ./code:/code
networks:
- common
########################################
##### NginX Web Server #####
########################################
app_webserver:
image: nginx:latest
restart: always
links:
- app_application
environment:
TZ: 'Asia/Kolkata'
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./code:/code
networks:
- www
- common
volumes:
app_mysql_volume:
networks:
www:
external: true
common:
driver: bridge
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment