Wpis z mikrobloga

Czy ktos probowal postawic #nextcloud na #raspberrypi za pomoca dockera? Korzystam z tego tutoriala glownie i stworzylem taki docker-compose.yaml, ale nextcloud narzeka na zle passy do postgresa, a pozniej wywala *Internal Server Error*...

version: "3.5"
services:
nextcloud:
image: nextcloud
restart: unless-stopped
ports:
- "8024:80"
volumes:
- $HOME/data/nextcloud/app:/var/www/html
environment:
- POSTGRES_HOST=next_db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
depends_on:
- db
db:
image: postgres:11-alpine
restart: unless-stopped
container_name: "next_db"
hostname: "next_db"
volumes:
- $HOME/data/nextcloud/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
Tak jak czytam w internecie to pojawia sie ten problem w paru miejscach, ale jakos nie bylem w stanie tego jeszcze naprawic :(

EDIT: wykop mi nie chce sformatowac kodu....

#programowanie #linux #docker
  • 15
@KKK1337:

next_db | PostgreSQL Database directory appears to contain a database; Skipping initialization
next_db |
next_db | 1970-04-28 05:37:36.009 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
next_db | 1970-04-28 05:37:36.009 GMT [1] LOG: listening on IPv6 address "::", port 5432
next_db | 1970-04-28 05:37:36.009 GMT [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
next_db | 1970-04-28 05:37:36.009 GMT [1] LOG: startup process (PID 20) was terminated by signal 11: