D
D
driverx182020-10-14 23:31:51
Nginx
driverx18, 2020-10-14 23:31:51

If nginx is deployed outside of docker, what should I put in fastcgi_pass?

Previously nginx was docker deployed and I had:
fastcgi_pass app:9000;
But now I took nginx out of docker and installed it locally, what should I write here to make it work? fastcgi_pass 127.0.0.1:9000; does not work :(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wexter, 2020-10-15
@Wexter

Throw port 9000 out of the app container

Z
zohan1993, 2020-10-15
@zohan1993

app:
    ...
    ports:
      - "127.0.0.1:9000:9000"

location / {
    fastcgi_pass 127.0.0.1:9000;
    ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question