self_hosting_docker/outline/docker-compose.yaml

60 lines
1.4 KiB
YAML
Raw Normal View History

2024-02-25 10:16:59 +00:00
version: "3.2"
services:
outline:
image: docker.getoutline.com/outlinewiki/outline:latest
ports:
- 3000:3000
volumes:
2024-02-25 14:15:27 +00:00
- /mnt/data:/var/lib/outline/data
2024-02-25 10:16:59 +00:00
depends_on:
- postgres
- redis
environment:
PGSSLMODE: disable
SECRET_KEY: ${SECRET_KEY}
UTILS_SECRET: ${UTILS_SECRET}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${SERVER_IP}:5432/${POSTGRES_DB}
REDIS_URL: redis://${SERVER_IP}:6379
URL: ${URL}
PORT: ${PORT}
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}
restart: unless-stopped
redis:
image: redis
ports:
- 6379:6379
volumes:
- ./redis.conf:/redis.conf
command:
- redis-server
- /redis.conf
healthcheck:
test:
- CMD
- redis-cli
- ping
interval: 10s
timeout: 30s
retries: 3
restart: unless-stopped
postgres:
image: postgres
ports:
- 5432:5432
volumes:
2024-02-25 14:15:27 +00:00
- /mnt/database:/var/lib/postgresql/data
2024-02-25 10:16:59 +00:00
healthcheck:
test:
- CMD
- pg_isready
interval: 30s
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
2024-02-25 14:15:27 +00:00
restart: unless-stopped