Skip to content

[Solved] Cannot get this to work with docker-compose.yml and Dockerfile #663

Answered by tarlepp
mbootsman asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like your nginx service is using that Dockerfile which have contents like:

FROM php:8.1-cli
ADD default.conf /etc/nginx/conf.d
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && \
    install-php-extensions bcmath

So, for me that looks like you're trying to setup nginx service with php image - most likely you would like to use eg. php-fpm there.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mbootsman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants