Greetings!
I’ve been attempting to install and get a functional Diaspora pod for weeks now. After several tries using the official installation guide, while looking on the web for answers, I stumbled across koehn’s Docker Compose page. I downloaded the three example yml files (database, diaspora, docker-compose), edited them, added them all to one directory, and ran the docker-compose up -d command. After configuring the nginx as a reverse server and making several edits to the my .conf file, I managed to get the intro page; however, no images are displaying. I read the support documents which said that I need to make sure that the section in the diaspora.yml where it says url: has the correct URL. Currently, I am just using http as my pod address and haven’t enabled all the SSL stuff in the nginx conf file yet. I just want to see if I can get the pod working using just HTTP and if I can get it working, then I will add the SSL stuff.
I don’t know what else I can do. I’ve spend weeks trying to get it to work and days getting it to work using the Docker image.
I’m running the Docker on Debian 9. As you already know, the Docker yml make Postgres, Redis, and Diaspora containers.
Should I post my config files here? What’s the next step?
Thank you so much. I really really want to get Diaspora up and running.
UPDATE: 07/16/19
I’m including my nginx configuration file below.
nginx config file (located in /etc/nginx/conf.d)
Default server configuration
#gzip_static on;
server {
listen 80;
listen [::]:80;
server_name subdomain.domain.com;
root /home/diaspora/diaspora/public;
# Configure maximum picture size
# Note that Diaspora has a client side check set at 4M
client_max_body_size 5M;
client_body_buffer_size 256K;
Proxy if requested file not found
try_files $uri @diaspora;
location /assets/ {
expires max;
add_header Cache-Control public;
}
location @diaspora {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://diaspora_server;
}
}
upstream diaspora_server {
server unix:/home/diaspora/diaspora/tmp/diaspora.sock;
server 127.0.0.1:3000;
}
Docker-compose file (located in same directory as above)
version: ‘2’
services:
diaspora:
image: koehn/diaspora:latest
links:
- postgres
- redis
volumes:
- diaspora-images:/home/diaspora/diaspora/public/uploads/images
- ./diaspora.yml:/home/diaspora/diaspora/config/diaspora.yml:ro
- ./database.yml:/home/diaspora/diaspora/config/database.yml:ro
ports:
- ‘3000:3000’
restart: always
postgres:
read_only: true
mem_limit: 8G
image: postgres:10-alpine
tmpfs:
- /tmp
environment:
- POSTGRES_USER=diaspora
- POSTGRES_PASSWORD=somepassword*@123
- POSTGRES_DB=diaspora_production
volumes:
- postgres:/var/lib/postgresql/data
- postgres-run:/var/run/postgresql
restart: always
redis:
image: redis:latest
mem_limit: 384M
read_only: true
tmpfs:
- /tmp
command: redis-server --appendonly yes
volumes:
- redis:/data
restart: always
volumes:
diaspora-images:
postgres:
postgres-run:
redis:
I tried to add all the SSL stuff later and the site stop working altogether. It’s worse than before.