45 lines
908 B
YAML
45 lines
908 B
YAML
version: "3"
|
|
services:
|
|
|
|
outline:
|
|
image: outlinewiki/outline
|
|
container_name: outline
|
|
ports:
|
|
- 3000:3000
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
redis:
|
|
image: redis
|
|
container_name: outline-redis
|
|
restart: always
|
|
volumes:
|
|
- /data/outline/redis.conf:/redis.conf
|
|
command: ["redis-server", "/redis.conf"]
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 30s
|
|
retries: 3
|
|
|
|
postgres:
|
|
image: postgres
|
|
container_name: outline-postgres
|
|
restart: always
|
|
volumes:
|
|
- /data/outline/db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
environment:
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: pass
|
|
POSTGRES_DB: outline
|
|
PGSSLMODE: "disable"
|