Hey ich bin gerade dabei Nextcloud mit Letsencrypt zu installieren. Ich möchte zusätzlich noch phpmyadmin integrieren, jedoch läuft meine Installation nicht rund.
Mit dem ersten Feldversuch, habe ich alles ganz normal installiert, dann wird über localhost:port Nextcloud install wizard aufgerufen. Jedoch bekomme ich ab und an Gateway 502 angezeigt. Genauso kann ich nicht mariadb aussuchen sondern kann erst über die Auswahl SQLlite die installation abschließen?!
Wenn ich das ganze mit phpmyadmin zusätzlich versuche, ist phpmyadmin nur paar minuten erreichbar, danach kommt Gateway 502 die ganze Zeit?
Hier mal meine docker config:
Code
version: '3'
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=userpw
env_file:
- db.env
phpmyadmin:
container_name: nextcloud_phpmyadmin
restart: always
image: phpmyadmin/phpmyadmin
links:
- db
environment:
#- PMA_PORT: 3306
- VIRTUAL_HOST=cloud.example.com
- LETSENCRYPT_HOST=mydb.example.com
- LETSENCRYPT_EMAIL=usermail@test.com
ports:
- "1066:80"
depends_on:
- db
restart: always
redis:
image: redis
restart: always
app:
image: nextcloud:fpm
restart: always
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/html:/var/www/html
environment:
- MYSQL_HOST=db
env_file:
- db.env
depends_on:
- db
- redis
web:
build: ./web
restart: always
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/html:/var/www/html:ro
environment:
- VIRTUAL_HOST=cloud.example.com
- LETSENCRYPT_HOST=cloud.example.com
- LETSENCRYPT_EMAIL=test@user.com
depends_on:
- app
ports:
- 4080:80
networks:
- proxy-tier
- default
collabora:
image: collabora/code
expose:
- 9980
cap_add:
- MKNOD
environment:
- domain=cloud.example.com
- VIRTUAL_HOST=office.example.com
- VIRTUAL_PORT=9980
- VIRTUAL_PROTO=https
- LETSENCRYPT_HOST=office.example.com
- LETSENCRYPT_EMAIL=test@user.com
- usename=Paddy
- password=userpw
networks:
- proxy-tier
restart: always
cron:
build: ./app
restart: always
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/html:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis
proxy:
build: ./proxy
restart: always
ports:
- 443:443
- 80:80
environment:
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=443
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-certs:/etc/nginx/certs:ro
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-vhost.d:/etc/nginx/vhost.d
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-html:/usr/share/nginx/html
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-conf.d:/etc/nginx/conf.d
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- proxy-tier
letsencrypt-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
volumes:
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-certs:/etc/nginx/certs
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-vhost.d:/etc/nginx/vhost.d
- /share/NEXTCLOUD/Docker-Volumes/nextcloud/nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy-tier
depends_on:
- proxy
networks:
proxy-tier:
Alles anzeigen