Open andrew-cullen opened 1 month ago
Here's what works for me (have only run it for 2 days, so...) :
version: "3.9"
services:
swag:
image: lscr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- ...
volumes:
- /opt/swag:/config
- /opt/invoiceninja/docker/app/public:/var/www/app/public:ro
ports:
- 443:443
- 80:80
restart: unless-stopped
networks:
default:
name: proxy-net
version: "3.9"
services:
invoiceninja:
image: invoiceninja/invoiceninja:5
container_name: invoiceninja
env_file: ./.env
restart: always
volumes:
- ./config/hosts:/etc/hosts:ro
- ./docker/app/public:/var/www/app/public:rw,delegated
- ./docker/app/storage:/var/www/app/storage:rw,delegated
- ./config/php/php.ini:/usr/local/etc/php/php.ini
- ./config/php/php-cli.ini:/usr/local/etc/php/php-cli.ini
depends_on:
- invoiceninja_db
networks:
- default
- proxy-net
invoiceninja_db:
image: mariadb:10.4
container_name: invoiceninja_db
restart: always
env_file: ./.env
volumes:
- ./docker/mysql/data:/var/lib/mysql:rw,delegated
networks:
- default
networks:
proxy-net:
external: true
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name invoices.*;
include /config/nginx/ssl.conf;
server_tokens off;
client_max_body_size 100M;
root /var/www/app/public/;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~* /storage/.*\.php$ {
return 503;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass invoiceninja:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
}
Setup information
docker-compose.yml
Env
Swag Config
Steps taken upon setup
Describe the bug
netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.11:41999 0.0.0.0:* LISTEN - tcp 0 0 :::9000 :::* LISTEN 55/php-fpm.conf) udp 0 0 127.0.0.11:58564 0.0.0.0:* - ~ $ curl http://127.0.0.1:9000 curl: (56) Recv failure: Connection reset by peer
To reproduce See above
Expected behavior Ability to access webserver.
Screenshots/logs Only noteable lines in logs appear to be
2024-10-13 05:15:25,025 WARN For [program:php-fpm], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored 2024-10-13 05:15:25,025 WARN For [program:scheduler], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored 2024-10-13 05:15:25,025 WARN For [program:queue-worker], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored 2024-10-13 05:15:25,025 WARN For [program:queue-worker], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
Docker/Kubernetes/Helm: Running docker 27.1.1
Any feedback as to where I might be able to look next to chase this down would be appreciated. I assume the error is upstream of Swag, as I'm unable to access :9000 from within the InvoiceNinja container, but I may well be missing something obvious here.
Thanks in advance, and apologies for the formatting.