Skip to content

Instantly share code, notes, and snippets.

@TerenceLiu98
Last active June 12, 2022 05:22
Show Gist options
  • Save TerenceLiu98/ab2ea244df9651269873bdf300602096 to your computer and use it in GitHub Desktop.
Save TerenceLiu98/ab2ea244df9651269873bdf300602096 to your computer and use it in GitHub Desktop.
version: "3"
services:
outline:
image: outlinewiki/outline
env_file: ./docker.env
command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"
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"
#- "9001:9001"
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=9bf27f6c
entrypoint: sh
command: -c 'minio server /data --console-address ":9001"'
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
https-portal:
image: steveltn/https-portal
env_file: ./docker.env
ports:
- '8000:80'
- '8443: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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment