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

Installed with Docker getting Bad Gateway 502 error #809

Closed
ahansson89 opened this issue Mar 28, 2018 · 3 comments
Closed

Installed with Docker getting Bad Gateway 502 error #809

ahansson89 opened this issue Mar 28, 2018 · 3 comments

Comments

@ahansson89
Copy link

I installed with the steps in the wiki for Docker. The container runs, but it is returning 502 Bad Gateway.

@lpar
Copy link

lpar commented Jun 21, 2018

I had this problem. Turned out the PostgreSQL container was restarting continuously because of an SELinux denial.

The fix:

diff --git a/docker-compose.yml b/docker-compose.yml
index c4901648..7b48e1af 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -36,7 +36,7 @@ services:
       - back
     env_file: docker/.env
     volumes:
-      - ./postgres:/var/lib/postgresql/data
+      - ./postgres:/var/lib/postgresql/data:z
 
 volumes:
   rails-assets:

Found via Docker PostgreSQL issue 116.

@scott scott closed this as completed Jul 22, 2018
@Sarke
Copy link
Contributor

Sarke commented Feb 3, 2019

Note as well that is can take a couple of minutes for the assets to be compiled and the website to become available.

@alexdg
Copy link

alexdg commented Aug 5, 2020

had to remove the "/data" and force 9.3 version.

postgres:
image: postgres:9.3
restart: always
networks:
- back
env_file: docker/.env
volumes:
- ./postgres:/var/lib/postgresql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants