Skip to content

Commit a7a7115

Browse files
committed
Merge branch 'master' into feature/55-dashboard
2 parents 7ee2690 + efba7fe commit a7a7115

File tree

11 files changed

+88
-20
lines changed

11 files changed

+88
-20
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Joomla
2-
JOOMLA_SITE=default
2+
JOOMLA_SITE=joomla
33
JOOMLA_VERSION=latest
44

55
### Composer

.env.default

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ APP_ENV=production
1313
APP_USER=www-data
1414

1515
# Defines if opcache is preloaded from APP_DATA (default)
16-
APP_PRELOAD=on
16+
APP_PRELOAD=off
1717

1818
# Location of the Apache root (default)
1919
APP_ROOT=/var/www
@@ -25,16 +25,16 @@ APP_DATA=/srv/www
2525
APP_VOLUME=/mnt/www
2626

2727
# Globally enable the application cache (default)
28-
APP_CACHE=1
28+
APP_CACHE=0
2929

3030
# Globally enable application debug mode (default)
31-
APP_DEBUG=0
31+
APP_DEBUG=on
3232

3333
# External HTTP port the app is listening on
34-
APP_HTTP=8080
34+
APP_HTTP=80
3535

3636
# External HTTPS port the app is listening on
37-
APP_HTTPS=8443
37+
APP_HTTPS=443
3838

3939
# Random number specific for the application (generated)
4040
APP_NONCE=

config/apache/sites-available/000-default.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<VirtualHost *:8080>
1+
<VirtualHost *:8080 *:80>
22

33
use vhost
44
use site
55

66
</VirtualHost>
77

8-
<VirtualHost *:8443>
8+
<VirtualHost *:8443 *:443>
99

1010
use ssl default
1111

config/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"michelf/php-markdown": "^1.9",
2020
"voku/html-min": "^4.0",
2121
"matthiasmullie/minify": "^1.3",
22-
"joomlatools/console": "dev-master as 1.6.x-dev",
22+
"joomlatools/console": "dev-feature/147-console2 as 1.6.x-dev",
2323
"joomlatools/framework": "dev-master as 3.5.x-dev",
2424
"joomlatools/pages": "dev-master as 0.22.x-dev"
2525
}
+22-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
<VirtualHost *:%http_port%>
2+
23
ServerAdmin webmaster@%site%.test
4+
35
DocumentRoot %root%
6+
47
ServerName %site%.test
58
ServerAlias www.%site%.test %site%.dev www.%site%.dev
69

7-
<Directory %root%>
8-
Options Indexes FollowSymLinks
9-
AllowOverride All
10-
Require all granted
11-
</Directory>
10+
Use site
11+
1212
</VirtualHost>
13+
14+
<IfModule mod_ssl.c>
15+
16+
<VirtualHost *:%ssl_port%>
17+
18+
ServerAdmin webmaster@%site%.test
19+
20+
DocumentRoot %root%
21+
22+
ServerName %site%.test
23+
ServerAlias www.%site%.test %site%.dev www.%site%.dev
24+
25+
Use ssl default
26+
Use site
27+
28+
</VirtualHost>
29+
</IfModule>

config/dnsmasq/dnsmasq.conf

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Dnsmasq config, for a complete example, see:
2+
# http://oss.segetech.com/intra/srv/dnsmasq.conf
3+
4+
# Dnsmasq will listen on loopback interface
5+
listen-address=0.0.0.0
6+
interface=eth0
7+
user=root
8+
9+
#only use these namesservers
10+
no-resolv
11+
server=1.1.1.1
12+
server=1.0.0.1
13+
14+
#Serve all .test queries using a specific nameserver
15+
address=/.test/127.0.0.1
16+
17+
#Turn caching off. We just need Dnsmasq to forward queries
18+
cache-size=0
19+
20+
# Do not cache negative responses
21+
no-negcache
22+
23+
#Log all dns queries
24+
#log-queries
25+
26+
# Send logging to stdout
27+
#log-facility=-

config/s6/cont-init.d/101-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ printf "%s" $MYSQL_USER > /var/run/s6/container_environment/MYSQL_USER
1010
MYSQL_VOLUME=${MYSQL_VOLUME:=/mnt/www/mysql}
1111
printf "%s" $MYSQL_VOLUME > /var/run/s6/container_environment/MYSQL_VOLUME
1212

13-
JOOMLA_SITE=${JOOMLA_SITE:=default}
13+
JOOMLA_SITE=${JOOMLA_SITE:=joomla}
1414
printf "%s" $JOOMLA_SITE > /var/run/s6/container_environment/JOOMLA_SITE
1515

1616
JOOMLA_VERSION=${JOOMLA_VERSION:=latest}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SIGUP
1+
SIGHUP

config/s6/services.d/mysql/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# https://dev.mysql.com/doc/refman/8.0/en/unix-signal-response.html#server-signal-response
66
# https://skarnet.org/software/s6/s6-svc.html
77

8-
# SIGUP: Reload the grant tables and to flush tables, logs, the thread cache, and the host cache
8+
# SIGHUP: Reload the grant tables and to flush tables, logs, the thread cache, and the host cache
99
# > s6-svc -h /var/run/s6/services/mysql
1010

1111
# SIGUSR2: Shutdown

config/scripts/joomla_install.sh

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ echo "* Creating the Joomla database"
1313
joomla database:install ${JOOMLA_SITE} --drop --mysql-login=root:
1414

1515
echo "* Configuring Joomla"
16-
joomla site:configure ${JOOMLA_SITE} --overwrite --mysql-login=root:
16+
joomla site:configure ${JOOMLA_SITE} --overwrite --mysql-login=root:
17+
18+
echo "* Creating vhost"
19+
joomla vhost:create ${JOOMLA_SITE}

docker-compose.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ services:
1212
- APP_DEBUG=on
1313
- APP_CACHE=off
1414
- APP_PRELOAD=off
15+
- APP_HTTP=80
16+
- APP_HTTPS=443
1517
build:
1618
context: .
1719
args:
@@ -39,8 +41,10 @@ services:
3941
#- ~/Projects/joomlatools-pages:/var/www/sites/[site]/libraries/joomlatools-components/pages/code
4042

4143
ports:
42-
- "8080:8080" # HTTP Apache
43-
- "8443:8443" # HTTPS Apache
44+
- "80:80" # HTTP Apache
45+
- "443:443" # HTTPS Apache
46+
#- "8080:8080" # HTTP Apache
47+
#- "8443:8443" # HTTPS Apache
4448
- "3306:3306" # MySQL
4549
- "33060:33060" # MySQL - X Plugin
4650

@@ -71,5 +75,22 @@ services:
7175
depends_on:
7276
- joomlatools-server
7377

78+
#docker compose --profile dnsmasq up
79+
dnsmasq:
80+
profiles: [ "dnsmasq" ]
81+
image: 4km3/dnsmasq
82+
container_name: dnsmasq
83+
ports:
84+
- "53:53/tcp"
85+
- "53:53/udp"
86+
cap_add:
87+
- NET_ADMIN
88+
depends_on:
89+
- joomlatools-server
90+
volumes:
91+
- type: bind
92+
source: ./config/dnsmasq/dnsmasq.conf
93+
target: /etc/dnsmasq.conf
94+
7495
volumes:
7596
mysql:

0 commit comments

Comments
 (0)