https://stackinfo.kage2kapp.org/outline-self-hosted-synology/#google_vignette
다른 건 안 되다가 위의 글로 성공.
아래 내용이 특히 유용
폴더와 redis.conf 파일을 만듭니다. (redis.conf 파일내용은 아무것도 없습니다)
sudo chown root:root /volume1/docker/outline/redis.conf
sudo chmod 644 /volume1/docker/outline/redis.confCopy
storage-data의 권한을 1001사용자로 만들기
방법은 2가지입니다.
1.ssh를 이용 chown 1001 위에서 폴더만든곳의 위치/storage-data
2.작업스케줄러를 이용해서 root 작업으로 chown 1001 위에서 폴더만든곳의 위치/storage-data
slack 인증으로 성공..
version: "3.8"
services:
outline:
image: docker.getoutline.com/outlinewiki/outline:latest
container_name: outline-app
hostname: outline-app
ports:
- 6710:3000
volumes:
- /volume1/docker/outline/storage-data:/var/lib/outline/data
depends_on:
- postgres
- redis
environment:
NODE_ENV: production
FORCE_HTTPS: ${FORCE_HTTPS:-true}
PGSSLMODE: disable
SECRET_KEY: ${SECRET_KEY}
UTILS_SECRET: ${UTILS_SECRET}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@outline-postgres:5432/${POSTGRES_DB}
REDIS_URL: redis://outline-redis:6379
URL: ${URL}
PORT: ${PORT:-3000}
FILE_STORAGE: local
FILE_STORAGE_LOCAL_ROOT_DIR: /var/lib/outline/data
FILE_STORAGE_UPLOAD_MAX_SIZE: 26214400
SLACK_CLIENT_ID: ${SLACK_CLIENT_ID}
SLACK_CLIENT_SECRET: ${SLACK_CLIENT_SECRET}
SLACK_SIGNING_SECRET: ${SLACK_SIGNING_SECRET}
restart: unless-stopped
networks:
- outline-network
redis:
container_name: outline-redis
hostname: outline-redis
image: redis
volumes:
- /volume1/docker/outline/redis.conf:/redis.conf
command:
- redis-server
- /redis.conf
healthcheck:
test:
- CMD
- redis-cli
- PING
interval: 10s
timeout: 30s
retries: 3
restart: unless-stopped
networks:
- outline-network
postgres:
image: postgres
container_name: outline-postgres
hostname: outline-postgres
volumes:
- /volume1/docker/outline/database-data:/var/lib/postgresql/data
healthcheck:
test:
- CMD-SHELL
- pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
timeout: 5s
retries: 3
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
restart: unless-stopped
networks:
- outline-network
networks:
outline-network:
driver: bridge