-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
976 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM php:7.2-apache | ||
LABEL in.thekrishna.rems.email="krishna.alagiri03@gmail.com" | ||
LABEL in.thekrishna.rems.authors="Krishnakanth, Mahalakshumi" | ||
LABEL in.thekrishna.rems.link="https://github.com/bearlike/REMS-For-Organisations" | ||
LABEL in.thekrishna.rems.title="Resources and Event Management System (REMS)" | ||
|
||
RUN rm /etc/apt/preferences.d/no-debian-php | ||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \ | ||
install-php-extensions gd xdebug | ||
RUN install-php-extensions pdo_mysql | ||
|
||
COPY . /var/www/html/ | ||
COPY docker/secrets_.php /var/www/html/members | ||
RUN rm -r /var/www/html/docs /var/www/html/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: '3' | ||
|
||
services: | ||
rems-app: | ||
image: krishna/rems:latest | ||
ports: | ||
- 8080:80 | ||
volumes: | ||
- rems_gen_certs:/var/www/html/public/Generated Certificate | ||
networks: | ||
- rems-network | ||
|
||
rems-mysql: | ||
image: mysql | ||
ports: | ||
- 3306:3306 | ||
volumes: | ||
- rems_mysql:/var/lib/mysql | ||
- ./docker/mysql:/docker-entrypoint-initdb.d | ||
environment: | ||
- MYSQL_ROOT_PASSWORD="0000" | ||
- MYSQL_DATABASE="db_cms" | ||
networks: | ||
rems-network: | ||
ipv4_address: 172.16.238.10 | ||
|
||
networks: | ||
rems-network: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.16.238.0/24 | ||
|
||
volumes: | ||
rems_mysql: | ||
rems_gen_certs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
echo -e "Building Image..." | ||
docker build -t krishnaalagiri/rems:latest . | ||
echo -e "Deploying Stack..." | ||
docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
docker stop "rems-mysql" && docker rm "rems-mysql" | ||
docker stop "rems-apache" && docker rm "rems-apache" | ||
docker network create --driver=bridge --subnet=172.16.238.0/24 "rems-network" | ||
docker volume rm "rems_mysql" && docker volume create "rems_mysql" | ||
|
||
docker run --name "rems-mysql" -v "rems_mysql":"/var/lib/mysql" -v "$PWD/docker/mysql":"/docker-entrypoint-initdb.d" -e MYSQL_ROOT_PASSWORD="0000" -p 3306:3306 -d --network "rems-network" --ip 172.16.238.10 mysql | ||
docker build -t krishnaalagiri/rems:latest . | ||
|
||
docker run --name "rems-apache" -d -p 8080:80 --network "rems-network" krishnaalagiri/rems:latest |
Oops, something went wrong.