Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
auto_https off
}

:80 {
{$SERVER_NAME} {
root /app/public

encode zstd br gzip
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN npm install && \
FROM dunglas/frankenphp:php8.3-alpine
WORKDIR /app

ENV SERVER_NAME=:80
ENV SERVER_NAME=:8080

RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

Expand Down Expand Up @@ -55,7 +55,10 @@ COPY docker/config/custom-php-fpm.conf /usr/local/etc/php-fpm.d/zzz-custom-php-f

RUN mkdir -p /var/cache/php/opcache && \
chmod 700 /var/cache/php/opcache
RUN chown -R www-data:www-data /app /data/caddy /config/caddy /var/cache/php

COPY ./docker-entrypoint.sh /

USER www-data

ENTRYPOINT ["/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker/compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
container_name: servas
restart: unless-stopped
ports:
- "8080:80"
- "8080:8080"
volumes:
- ./.env:/app/.env
- servas-db-sqlite:/app/database/database.sqlite
Expand Down
4 changes: 2 additions & 2 deletions docker/config/custom-php-fpm.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[www]
user = root
group = root
user = www-data
group = www-data

pm = ondemand
pm.max_children = 5
Expand Down
2 changes: 1 addition & 1 deletion docker/mariadb-example/compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
depends_on:
- db
ports:
- "8080:80"
- "8080:8080"
volumes:
- ./.env:/app/.env

Expand Down