Closed giffiecode closed 9 months ago
I googled your error message and found this stackoverflow answer as the top result and I suspect their solution will solve your problem. Without seeing your docker-compose.prod.yml
file, however, I can't say for sure that this is the same root cause of the error.
version: '3.3'
services:
web:
build:
context: ./services/web
dockerfile: Dockerfile.prod
command: gunicorn --bind 0.0.0.0:5000 manage:app
expose:
- 5000
env_file:
- ./.env.prod
depends_on:
- db
db:
image: postgres:13
volumes:
- postgres_data_prod:/var/lib/postgresql/data/
env_file:
- ./.env.prod.db
volumes:
postgres_data_prod:
nginx:
build: ./services/nginx
ports:
- 1337:80
depends_on:
- web
Thanks Mike, let me look into the stackover flow. Meanwhile this is my docker-compose.prod.yml
file
I got this error when running
vim docker-compose.prod.yml
in the nginx section. Still doesn't work after changing the version to 3.3 in the prod.yml file