Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
docker_training
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ashit.gajwani
docker_training
Commits
427ceeaa
Commit
427ceeaa
authored
Sep 17, 2021
by
ashit.gajwani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Pipeline
#293
failed with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
0 deletions
+126
-0
PHP-FPM.Dockerfile
config/PHP-FPM.Dockerfile
+14
-0
nginx.conf
config/nginx.conf
+23
-0
docker-compose-devlopment.yml
docker-compose-devlopment.yml
+11
-0
docker-compose-production.yml
docker-compose-production.yml
+12
-0
docker-compose.yml
docker-compose.yml
+66
-0
No files found.
config/PHP-FPM.Dockerfile
0 → 100644
View file @
427ceeaa
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/*
config/nginx.conf
0 → 100644
View file @
427ceeaa
# 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
;
}
}
docker-compose-devlopment.yml
0 → 100644
View file @
427ceeaa
version
:
'
3.7'
services
:
########################################
##### NginX Web Server #####
########################################
app_webserver
:
environment
:
VIRTUAL_HOST
:
'
local.dashboard-app.climate-connect.com'
VIRTUAL_PROTO
:
'
http'
docker-compose-production.yml
0 → 100644
View file @
427ceeaa
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'
docker-compose.yml
0 → 100644
View file @
427ceeaa
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment