시롤로지 나스 도커 docker nextcloud + mariadb + redis 설치하기
페이지 정보
본문
version: '3.7'
services:
db:
image: mariadb:10.5
container_name: nextcloud_db
volumes:
- /volume1/docker/mariadb:/var/lib/mysql
networks:
nextcloud:
ipv4_address: 172.90.0.3
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=ROW
environment:
TZ: Asia/Seoul
MYSQL_ROOT_PASSWORD: nextcloud
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
redis:
image: redis:6.0-alpine
container_name: nextcloud_redis
command: redis-server --requirepass 123456
restart: always
volumes:
- /volume1/docker/redis:/data
sysctls:
- net.core.somaxconn=2048
networks:
nextcloud:
ipv4_address: 172.90.0.4
nextcloud:
depends_on:
- redis
- db
image: ghcr.io/linuxserver/nextcloud:php8
container_name: nextcloud
volumes:
- /volume1/docker/nextcloud/appdata:/config
- /volume1/docker/nextcloud/data:/data
networks:
nextcloud:
ipv4_address: 172.90.0.5
ports:
- 8014:443
restart: always
environment:
REDIS_HOST: redis
MYSQL_HOST: db:3306
REDIS_HOST_PASSWORD: 123456
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
TZ: Asia/Seoul
networks:
nextcloud:
name: nextcloud_network
driver: bridge
ipam:
config:
- subnet: 172.90.0.0/16
gateway: 172.90.0.1
1. https로
2. DB 설정
3. (조금 시간이 지난 후) 업데이트
4. 아래 내용 nextcloud/config의 config.php에 추가
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
'host' => 'redis', #이름으로 안되면 IP 주소 넣기 172.90.0.4
'port' =>6379 ,
'dbindex' => 0,
'password' => '123456',
'timeout' => 1.5,
],
'default_language' => 'ko',
'default_locale' => 'ko_KR',
'default_phone_region' => 'KR',
'trusted_proxys' => '172.90.0.1',
'overwriteprotocol' => 'https',
'OVERWRITEHOST' => 'my.domain.com', #수정 필요
'overwritecondaddr' => '^172\.90\.0\.1$',
<업로드시 10M 고정 수정하기>
docker ps 하면 id 값 확인 가능
docker exec -it <id 값> /bin/bash
occ config:app:set files max_chunk_size --value 524288000
댓글목록
등록된 댓글이 없습니다.