Skip to content

Instantly share code, notes, and snippets.

@Andacanaver
Created February 28, 2024 16:00
Show Gist options
  • Save Andacanaver/8df55208e03a6bdadee0d132ba71d7b3 to your computer and use it in GitHub Desktop.
Save Andacanaver/8df55208e03a6bdadee0d132ba71d7b3 to your computer and use it in GitHub Desktop.
version: "3.2"
services:
outline:
image: docker.getoutline.com/outlinewiki/outline:latest
env_file: ./docker.env
ports:
- "3800:3000"
volumes:
- ./data:/var/lib/outline/data
depends_on:
- postgres
- redis
redis:
image: redis
env_file: ./docker.env
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
user: "redis:redis"
postgres:
image: postgres
env_file: ./docker.env
ports:
- "5433:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready"]
interval: 30s
timeout: 20s
retries: 3
environment:
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'JEGBEK2eVg4KUGh2MXcbV3K7'
POSTGRES_DB: 'outline'
user: "postgres:postgres"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment