Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98e7c4b6a5 | |||
| dd23a2c93a | |||
| 3b3c74242d | |||
| 2da8c4ab9f | |||
| 1396549aa3 | |||
| 0f25c1454c |
5
Important.md
Normal file
5
Important.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Don't forget to add innextcloud/config/config.php:
|
||||||
|
|
||||||
|
'overwrite.cli.url' => 'http://next.airdog.site',
|
||||||
|
|
||||||
|
Otherwise android clients don't work
|
||||||
@ -1 +1,2 @@
|
|||||||
Do NOT use the vhosts and certs and proxy directories.
|
Do NOT use the vhosts and certs and proxy directories.
|
||||||
|
ONLY need the docker-compose file
|
||||||
81
docker-compose.alt
Normal file
81
docker-compose.alt
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
image: jwilder/nginx-proxy:alpine
|
||||||
|
labels:
|
||||||
|
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
|
||||||
|
container_name: nextcloud-proxy
|
||||||
|
networks:
|
||||||
|
- nextcloud_network
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
volumes:
|
||||||
|
- ./proxy/conf.d:/etc/nginx/conf.d:rw
|
||||||
|
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
|
||||||
|
- ./proxy/html:/usr/share/nginx/html:rw
|
||||||
|
- ./proxy/certs:/etc/nginx/certs:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
letsencrypt:
|
||||||
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
||||||
|
container_name: nextcloud-letsencrypt
|
||||||
|
depends_on:
|
||||||
|
- proxy
|
||||||
|
networks:
|
||||||
|
- nextcloud_network
|
||||||
|
volumes:
|
||||||
|
- ./proxy/certs:/etc/nginx/certs:rw
|
||||||
|
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
|
||||||
|
- ./proxy/html:/usr/share/nginx/html:rw
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mariadb
|
||||||
|
container_name: nextcloud-mariadb
|
||||||
|
networks:
|
||||||
|
- nextcloud_network
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=toor
|
||||||
|
- MYSQL_PASSWORD=mysql
|
||||||
|
- MYSQL_DATABASE=nextcloud
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
app:
|
||||||
|
image: nextcloud:latest
|
||||||
|
container_name: nextcloud-app
|
||||||
|
networks:
|
||||||
|
- nextcloud_network
|
||||||
|
depends_on:
|
||||||
|
- letsencrypt
|
||||||
|
- proxy
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- nextcloud:/var/www/html
|
||||||
|
- ./app/config:/var/www/html/config
|
||||||
|
- ./app/custom_apps:/var/www/html/custom_apps
|
||||||
|
- ./app/data:/var/www/html/data
|
||||||
|
- ./app/themes:/var/www/html/themes
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- VIRTUAL_HOST=nextcloud.YOUR-DOMAIN
|
||||||
|
- LETSENCRYPT_HOST=nextcloud.YOUR-DOMAIN
|
||||||
|
- LETSENCRYPT_EMAIL=YOUR-EMAIL
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nextcloud:
|
||||||
|
db:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
nextcloud_network:
|
||||||
@ -2,8 +2,9 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb:10.5
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||||
|
# command: --innodb-read-only-compressed=OFF
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/mysql
|
- ./db:/var/lib/mysql
|
||||||
@ -16,33 +17,29 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: nextcloud:apache
|
image: nextcloud:latest
|
||||||
restart: always
|
restart: always
|
||||||
# ports:
|
|
||||||
# - 8080:80
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./nextcloud:/var/www/html
|
- ./nextcloud:/var/www/html
|
||||||
- ./php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
|
- ./php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
- VIRTUAL_HOST=next.airdog.site
|
- VIRTUAL_HOST=next.franv.site
|
||||||
- LETSENCRYPT_HOST=next.airdog.site
|
- LETSENCRYPT_HOST=next.franv.site
|
||||||
- LETSENCRYPT_EMAIL=ouch@thetrauma.org
|
- LETSENCRYPT_EMAIL=ouch@thetrauma.org
|
||||||
|
|
||||||
env_file:
|
env_file:
|
||||||
- db.env
|
- db.env
|
||||||
|
labels:
|
||||||
|
- diun.enable=true
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
networks:
|
networks:
|
||||||
backend_next:
|
backend_next:
|
||||||
franvproxy_proxy-tier:
|
acme-companion_proxy-tier:
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
backend_next:
|
backend_next:
|
||||||
driver: bridge
|
acme-companion_proxy-tier:
|
||||||
franvproxy_proxy-tier:
|
|
||||||
external: true
|
external: true
|
||||||
#volumes:
|
|
||||||
# db:
|
|
||||||
# nextcloud:
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user