-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
48 additions
and
8 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,14 @@ | ||
version: 1.0 | ||
compose-app: docker compose | ||
env-file: ./src/.env | ||
defaults: | ||
group: dev | ||
project-name: rinchen | ||
service-groups: | ||
- name: dev | ||
compose-path: containers/docker-compose.yaml | ||
env-file: ./src/.env | ||
services: | ||
default: web | ||
available: | ||
- name: web |
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 |
---|---|---|
|
@@ -9,5 +9,7 @@ dependencies: | |
- python | ||
- pip | ||
- makim 1.8.3 | ||
- containers-sugar 1.9.0 | ||
- pip: | ||
- pygments | ||
- compose-go>=1.23 |
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
FROM httpd:2.4 | ||
COPY ./public-html/ /usr/local/apache2/htdocs/ | ||
FROM webdevops/php-nginx:7.4 | ||
|
||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get install -y \ | ||
sudo \ | ||
tzdata \ | ||
openssl \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
/var/cache/apt/archives \ | ||
/tmp/* | ||
|
||
# RUN addgroup --gid ${GID} devops \ | ||
# && useradd --uid ${UID} --gid ${GID} -ms /bin/bash devops \ | ||
# && echo "devops ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/devops \ | ||
# && chmod 0440 /etc/sudoers.d/devops |
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
version: '3.3' | ||
|
||
services: | ||
my-apache2: | ||
web: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
context: .. | ||
dockerfile: ./containers/Dockerfile | ||
args: | ||
- UID=${UID} | ||
- GID=${GID} | ||
ports: | ||
- 8080:80 | ||
- ${HOST_PORT}:80 | ||
user: "${UID}:${GID}" | ||
volumes: | ||
- ./public-html:/usr/local/apache2/htdocs/ | ||
- ../src:/app |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
require_once "./lib/settings.php"; | ||
require_once dirname(__DIR__) . "/lib/settings.php"; | ||
|
||
global $BASE_URL; | ||
|
||
|
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