Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/php-fpm] nginx & php-fpm images with podman compose - nginx container crashes on start #22510

Open
trymeouteh opened this issue Apr 25, 2024 · 1 comment
Labels
compose kind/bug Categorizes issue or PR as related to a bug. stale-issue

Comments

@trymeouteh
Copy link

Issue Description

Describe your issue

Unable to get the bitmani nginx + php images to work in podman. I am able to get these images to work togeather in Docker and I can get the bitnami nginx image by itself to work in podman.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install Podman (I am using Podman 4.8.2)
  2. Use podman compose to create containers

compose.yml

version: '3'
services:
    nginx:
        image: docker.io/bitnami/nginx
        volumes:
            - ./nginx.conf:/opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:ro
            - .:/app/
        ports:
            - 8080:8080
        networks:
            - app-tier
        depends_on:
            - phpfpm
    phpfpm:
        image: docker.io/bitnami/php-fpm
        volumes:
            - .:/app/
        networks:
            - app-tier
networks:
  app-tier:
    driver: bridge

nginx.conf

server {
    server_name localhost;
    listen 8080;
    
    root /app/www/public;

    index index.php index.html index.htm;
    autoindex on;

    location ~ \.php$ {
        fastcgi_pass phpfpm:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }
} 

Describe the results you received

Describe the results you received

This is the error I get from the nginx container that causes the container to crash when it starts.

nginx 03:15:56.00 INFO  ==> ** Starting NGINX **
2024/04/19 03:15:56 [emerg] 1#1: host not found in upstream "phpfpm" in /opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:19
nginx: [emerg] host not found in upstream "phpfpm" in /opt/bitnami/nginx/conf/server_blocks/my_server_block.conf:19

Describe the results you expected

Describe the results you expected

No errors

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

- Podman 4.8.2
- Manjaro Linux
- amd64

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

None

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

bitnami/containers#65285

@trymeouteh trymeouteh added the kind/bug Categorizes issue or PR as related to a bug. label Apr 25, 2024
Copy link

github-actions bot commented Jun 6, 2024

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compose kind/bug Categorizes issue or PR as related to a bug. stale-issue
Projects
None yet
Development

No branches or pull requests

2 participants