mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
Podman containers + nginx proxy #289
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abn0mad on GitHub (Feb 23, 2023).
Hi there,
Having issues deploying planka as separate (rootless) podman containers, fronted by an nginx reverse proxy.
Steps:
podman run -it \ --volume /data/planka/user-avatars:/app/public/user-avatars:Z \ --volume /data/planka/project-background-images:/app/public/project-background-images:Z \ --volume /data/planka/attachments:/app/private/attachments:Z \ --env=BASE_URL=https://planka.example.com \ --env=TRUST_PROXY=0 \ --env=DATABASE_URL=postgresql://planka:examplepw@10.8.0.11:5432/planka \ --env=SECRET_KEY=examplekey \ --network examplenet \ --ip 10.8.0.10 \ --name planka \ ghcr.io/plankanban/planka:latestpodman run -it \ --volume /data/planka/db:/var/lib/postgresql/data:Z \ --env=POSTGRES_USER=planka \ --env=POSTGRES_PASSWORD=examplepw \ --env=POSTGRES_DB=planka \ --network examplenet \ --ip 10.8.0.11 \ --name planka-db \ docker.io/library/postgres:14-alpine(adding or removing the TRUST env variable doesn't change anything; as planka won't be approaching the db through localhost, it didn't seem necessary).
All the example* values are different in the actual deployment attempt. Both containers start up fine, although the main planka container displays this message when started interactively:
debug: Detected Sails environment is "production", but NODE_ENV is undefined. debug: Automatically setting the NODE_ENV environment variable to "production". debug:Proxy configuration:
`upstream planka {
server 10.8.0.10:1337;
keepalive 32;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name kb.nakarma.com;
}`
I've also tried:
`server {
server_name planka.example.com;
}
server {
if ($host = planka.example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
}`
In either case the result is a blank page, albeit with a window title.
Console error:
Loading failed for the <script> with source “https://planka.example.com/static/js/main.5ea5d3b8.js”. planka.example.com:1:1The nginx deployment is proxying a few other services such as Gitea and Woodpecker-CI successfully, so it is functional.
Any help would be much appreciated.
@abn0mad commented on GitHub (Feb 23, 2023):
Fixed it by modifying the proxy_pass parameters on the official nginx proxy template provided by Planka.
Sorry for the disturbance and thank you for making Planka, I look forward to start using it :)