Compare commits
No commits in common. "a6941d88f40de8c934ab4bcf832a014e73785262" and "90251a2ca1009b3b1d518f23dd6ced5bf76401e8" have entirely different histories.
a6941d88f4
...
90251a2ca1
@ -8,8 +8,8 @@ APP_FOLDER="../project"
|
|||||||
#
|
#
|
||||||
# APACHE
|
# APACHE
|
||||||
#
|
#
|
||||||
HTTP_SERVER_NAME=_
|
HTTPD_SERVER_NAME=_
|
||||||
API_LISTEN_PORT=80
|
HTTPD_LISTEN_PORT=80
|
||||||
|
|
||||||
#
|
#
|
||||||
# Adminer
|
# Adminer
|
||||||
|
@ -1,32 +1,23 @@
|
|||||||
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
|
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName _
|
#
|
||||||
|
# Following lines need to be updated to your needs
|
||||||
|
#
|
||||||
|
|
||||||
|
#ServerName www.example.com
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /var/www/html/
|
DocumentRoot /var/www/html/public
|
||||||
|
DirectoryIndex /index.php
|
||||||
<Directory /var/www/html/api/public>
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteBase /var/www/html/api/public
|
|
||||||
|
|
||||||
|
<Directory /var/www/html/public>
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Order Allow,Deny
|
Order Allow,Deny
|
||||||
Allow from All
|
Allow from All
|
||||||
|
|
||||||
FallbackResource /api/public/index.php
|
FallbackResource /index.php
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /var/www/html/app>
|
|
||||||
AllowOverride None
|
|
||||||
Order Allow,Deny
|
|
||||||
Allow from All
|
|
||||||
|
|
||||||
DirectoryIndex index.html
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
@ -6,6 +6,26 @@ networks:
|
|||||||
name: "${APP_NAME}-net"
|
name: "${APP_NAME}-net"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
# apache:
|
||||||
|
# container_name: "${APP_NAME}-apache"
|
||||||
|
# labels:
|
||||||
|
# local.project: "${APP_NAME}"
|
||||||
|
# build:
|
||||||
|
# context: .
|
||||||
|
# dockerfile: apache/Dockerfile
|
||||||
|
# restart: always
|
||||||
|
# ports:
|
||||||
|
# - "${HTTPD_LISTEN_PORT}:80"
|
||||||
|
# volumes:
|
||||||
|
# - "${APP_FOLDER}:/usr/local/apache2/htdocs"
|
||||||
|
# - ./apache/vhosts:/etc/apache2/sites-enabled
|
||||||
|
# - ./tmp:/tmp
|
||||||
|
# - ./apache/logs:/var/log/httpd:cached
|
||||||
|
# depends_on:
|
||||||
|
# - php
|
||||||
|
# networks:
|
||||||
|
# - mynetwork
|
||||||
|
|
||||||
php:
|
php:
|
||||||
container_name: "${APP_NAME}-php"
|
container_name: "${APP_NAME}-php"
|
||||||
labels:
|
labels:
|
||||||
@ -15,14 +35,12 @@ services:
|
|||||||
dockerfile: php/Dockerfile
|
dockerfile: php/Dockerfile
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "${API_LISTEN_PORT}:80"
|
- "${HTTPD_LISTEN_PORT}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- "${APP_FOLDER}:/var/www/html"
|
- "${APP_FOLDER}:/var/www/html"
|
||||||
- ./apache/vhosts:/etc/apache2/sites-enabled
|
- ./apache/vhosts:/etc/apache2/sites-enabled
|
||||||
- ./apache/logs:/var/log/apache2:cached
|
- ./apache/logs:/var/log/apache2:cached
|
||||||
- ./tmp:/tmp
|
- ./tmp:/tmp
|
||||||
environment:
|
|
||||||
serverMail: "localhost"
|
|
||||||
networks:
|
networks:
|
||||||
- mynetwork
|
- mynetwork
|
||||||
|
|
||||||
@ -36,7 +54,7 @@ services:
|
|||||||
- "${MARIADB_PORT}:3306"
|
- "${MARIADB_PORT}:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
- ./mariadb:/etc/mysql
|
# - ./mariadb:/etc/mysql
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD}"
|
MARIADB_ROOT_PASSWORD: "${MARIADB_ROOT_PASSWORD}"
|
||||||
MARIADB_USER: "${MARIADB_USER}"
|
MARIADB_USER: "${MARIADB_USER}"
|
||||||
@ -86,7 +104,7 @@ services:
|
|||||||
- "${POSTGRES_PORT}:5432"
|
- "${POSTGRES_PORT}:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- db_data:/var/lib/postgresql/data
|
||||||
- ./postgresql:/etc/postgresql
|
# - ./postgresql:/etc/postgresql
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
||||||
POSTGRES_USER: "${POSTGRES_USER}"
|
POSTGRES_USER: "${POSTGRES_USER}"
|
||||||
@ -113,6 +131,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${ADMINER_PORT}:8080"
|
- "${ADMINER_PORT}:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
# - apache
|
||||||
- php
|
- php
|
||||||
networks:
|
networks:
|
||||||
- mynetwork
|
- mynetwork
|
||||||
|
Loading…
x
Reference in New Issue
Block a user