Skip to content

Instantly share code, notes, and snippets.

@Snuupy
Created March 19, 2023 14:40
Show Gist options
  • Save Snuupy/1ddeac6cdbd0ae2657b6793afbd875b3 to your computer and use it in GitHub Desktop.
Save Snuupy/1ddeac6cdbd0ae2657b6793afbd875b3 to your computer and use it in GitHub Desktop.
self-hosting outline
version: "3"
services:
outlineredis:
container_name: outlineredis
image: redis
restart: always
outlinepostgres:
container_name: outlinepostgres
image: postgres:13
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: outline
volumes:
- ./data/pgdata:/var/lib/postgresql/data
restart: always
outlineminio:
container_name: outlineminio
image: minio/minio
# ports:
# - 10000:9000
# - 10001:9001
volumes:
- ./data/minio_root:/minio_root:z
# - ./data/certs:/root/.minio/certs:z
# command: "minio server /minio_root"
command: "minio server /minio_root --address ':9000' --console-address ':9001'"
# command: server --address ":9000" --console-address ":9001" /data
env_file: ./env.minio
restart: always
networks:
- swag
outlineapp:
container_name: outlineapp
image: outlinewiki/outline:0.68.1
command: sh -c "yarn db:migrate --env production-ssl-disabled && yarn start"
environment:
- DATABASE_URL=postgres://user:pass@outlinepostgres:5432/outline
- DATABASE_URL_TEST=postgres://user:pass@outlinepostgres:5432/outline-test
- REDIS_URL=redis://outlineredis:6379
env_file:
- ./env.outline
- ./env.slack
restart: always
depends_on:
- outlinepostgres
- outlineredis
- outlineminio
networks:
- swag
- default
networks:
swag:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment