Skip to content

Commit f060e17

Browse files
authored
Merge pull request alexjustesen#1 from alexjustesen/config-with-yml
Config with yml
2 parents eb5341a + c1b109d commit f060e17

26 files changed

+24472
-371
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/public/storage
55
/storage/*.key
66
/vendor
7+
config.yml
78
.env
89
.env.backup
910
.phpunit.result.cache

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Everything needs to be reviewed by Alex
2+
* @alexjustesen

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/public/storage
55
/storage/*.key
66
/vendor
7+
config.yml
78
.env
89
.env.backup
910
.phpunit.result.cache

.phpstorm.meta.php

Lines changed: 2102 additions & 0 deletions
Large diffs are not rendered by default.

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@ FROM serversideup/php:8.1-fpm-nginx
33
# Install addition packages
44
RUN apt-get update && apt-get install -y \
55
cron \
6-
supervisor \
76
php8.1-bcmath \
87
php8.1-pgsql \
98
&& apt-get clean \
10-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
11-
&& rm -f /etc/cont-init.d/50-laravel-automations
9+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
1210

1311
# Install Speedtest cli
1412
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
1513
&& apt-get install -y speedtest
1614

1715
# Copy package configs
1816
COPY docker/deploy/cron/scheduler /etc/cron.d/scheduler
19-
COPY docker/deploy/entrypoint /usr/local/bin/entrypoint
20-
COPY docker/deploy/etc/cont-init.d/ /etc/cont-init.d/
21-
COPY docker/deploy/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
22-
23-
RUN chmod 0644 /etc/cron.d/scheduler \
24-
&& crontab /etc/cron.d/scheduler \
25-
&& chmod +x /usr/local/bin/entrypoint
17+
COPY docker/deploy/etc/services.d/ /etc/services.d/
2618

2719
# Copy app
2820
COPY . /var/www/html
2921
COPY .env.docker .env
3022

3123
# Install app dependencies
3224
RUN composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev \
33-
&& chown -R 9999:9999 /var/www/html
25+
&& mkdir -p /app \
26+
&& mkdir -p storage/logs \
27+
&& php artisan optimize:clear \
28+
&& chown -R webuser:webgroup /var/www/html \
29+
&& rm -rf /etc/cont-init.d/50-laravel-automations \
30+
&& chmod 0644 /etc/cron.d/scheduler \
31+
&& crontab /etc/cron.d/scheduler \
32+
&& cp docker/deploy/entrypoint.sh /entrypoint \
33+
&& chmod +x /entrypoint
3434

35-
ENTRYPOINT ["entrypoint"]
35+
ENTRYPOINT ["/entrypoint"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ docker run -itd --name speedtest-tracker \
1616
-p 8080:80 \
1717
-e "PHP_POOL_NAME=speedtest-tracker_php" \
1818
-e "DB_CONNECTION=sqlite" \
19-
-e "DB_DATABASE=/appdata/database.sqlite" \
20-
-v speedtest-tracker_app:/appdata \
19+
-e "DB_DATABASE=/app/database.sqlite" \
20+
-v speedtest-tracker_app:/app \
2121
speedtest-tracker
2222
```
2323

0 commit comments

Comments
 (0)