Repository

Looks good to me!

User Tools

Site Tools


kb:intranet:services:wiki:outline:start

Outline

After much difficulty, and 2 hours later, got the outline to get going:

/outline$ docker-compose ps
WARNING: Some services (storage) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
       Name                     Command                   State                         Ports
---------------------------------------------------------------------------------------------------------------
outline_outline_1    docker-entrypoint.sh yarn  ...   Up               0.0.0.0:3000->3000/tcp,:::3000->3000/tcp
outline_postgres_1   docker-entrypoint.sh postgres    Up (unhealthy)   5432/tcp
outline_redis_1      docker-entrypoint.sh redis ...   Up (healthy)     6379/tcp
outline_storage_1    sh -c minio server /data         Up (healthy)     9000/tcp

Transformed the default docker-compose:

version: "3"
services:

  outline:
    image: outlinewiki/outline
    env_file: ./docker.env
    ports:
      - "3000:3000"
    depends_on:
      - postgres
      - redis
      - storage

  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

  postgres:
    image: postgres
    env_file: ./docker.env
    ports:
      - "5432:5432"
    volumes:
      - database-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD", "pg_isready -U user"]
      interval: 30s
      timeout: 20s
      retries: 3
    environment:
      POSTGRES_USER: user
      POSTGRES_PASSWORD: pass
      POSTGRES_DB: outline

  storage:
    image: minio/minio
    env_file: ./docker.env
    ports:
      - "9000:9000"
    entrypoint: sh
    command: -c 'minio server'
    deploy:
      restart_policy:
        condition: on-failure
    volumes:
      - storage-data:/data
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3

  https-portal:
    image: steveltn/https-portal
    env_file: ./docker.env
    ports:
      - '80:80'
      - '443:443'
    links:
      - outline
      - storage
    restart: always
    volumes:
      - https-portal-data:/var/lib/https-portal
    healthcheck:
      test: ["CMD", "service", "nginx", "status"]
      interval: 30s
      timeout: 20s
      retries: 3

volumes:
  https-portal-data:
  storage-data:
  database-data:

to this:

version: "3"
services:

  outline:
    image: outlinewiki/outline:0.62.0
    env_file: ./docker.env
    ports:
      - "3000:3000"
    depends_on:
      - postgres
      - redis
      - storage

  redis:
    image: redis
    env_file: ./docker.env
    volumes:
      - ./redis.conf:/redis.conf
    command: ["redis-server", "/redis.conf"]
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 30s
      retries: 3

  postgres:
    image: postgres
    env_file: ./docker.env
    volumes:
      - database-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD", "pg_isready -U user"]
      interval: 30s
      timeout: 20s
      retries: 3
    environment:
      POSTGRES_USER: user
      POSTGRES_PASSWORD: pass
      POSTGRES_DB: outline

  storage:
    image: minio/minio
    env_file: ./docker.env
    entrypoint: sh
    command: -c 'minio server /data'
    deploy:
      restart_policy:
        condition: on-failure
    volumes:
      - storage-data:/data
    healthcheck:
      test: ["CMD", "curl", "-f", "http://storage:9000/minio/health/live"]
      interval: 30s
      timeout: 20s
      retries: 3

volumes:
  storage-data:
  database-data:

and the corresponding docker.env:

# If listed here, the key-value pairs have changed (or are important enough they not be changed)
# Sample keys
SECRET_KEY=81d837a4df3787138cd48724d860a22e642119d706bdaa884163f4f79f1d3e48
UTILS_SECRET=a4275f161b97a03f65cb429a0df5a2794d3e420a117d4ced07e556a77df65786

DATABASE_URL=postgres://user:pass@postgres:5432/outline
DATABASE_URL_TEST=postgres://user:pass@postgres:5432/outline-test
PGSSLMODE=disable
REDIS_URL=redis://redis:6379

# This URL is served over own HTTP server, and proxied to localhost:3000
URL=https://outline.pyuxiang.com
PORT=3000

AWS_S3_UPLOAD_BUCKET_URL=http://storage:9000

GOOGLE_CLIENT_ID=123406984525-BLAKSJWEFLKSANVAWELFKNWEFLKNAWEF.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-ABCDEFFERFLJASDOVIJWEJWEOIFJ
FORCE_HTTPS=false
kb/intranet/services/wiki/outline/start.txt · Last modified: 18 months ago ( 2 May 2023) by 127.0.0.1