1 changed files with 78 additions and 62 deletions
@ -1,72 +1,88 @@ |
|||||||
version: "2" |
version: "3.2" |
||||||
services: |
services: |
||||||
outline_redis: |
|
||||||
image: redis |
|
||||||
restart: always |
|
||||||
container_name: outline_redis |
|
||||||
|
|
||||||
outline_postgres: |
outline: |
||||||
image: postgres:13 |
image: docker.getoutline.com/outlinewiki/outline:latest |
||||||
restart: always |
env_file: ./docker.env |
||||||
container_name: outline_postgres |
ports: |
||||||
environment: |
- "3000:3000" |
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} |
depends_on: |
||||||
- POSTGRES_USER=outline |
- postgres |
||||||
- POSTGRES_DB=outline |
- redis |
||||||
|
- storage |
||||||
|
|
||||||
|
redis: |
||||||
|
image: redis |
||||||
|
env_file: ./docker.env |
||||||
|
ports: |
||||||
|
- "6379:6379" |
||||||
volumes: |
volumes: |
||||||
- /var/lib/docker/volumes/outline/db:/var/lib/postgresql/data:Z |
- ./redis.conf:/redis.conf |
||||||
|
command: ["redis-server", "/redis.conf"] |
||||||
|
healthcheck: |
||||||
|
test: ["CMD", "redis-cli", "ping"] |
||||||
|
interval: 10s |
||||||
|
timeout: 30s |
||||||
|
retries: 3 |
||||||
|
|
||||||
outline_minio: |
postgres: |
||||||
image: minio/minio |
image: postgres |
||||||
restart: always |
env_file: ./docker.env |
||||||
container_name: outline_minio |
ports: |
||||||
|
- "5432:5432" |
||||||
volumes: |
volumes: |
||||||
- /var/lib/docker/volumes/outline/data:/data:Z |
- database-data:/var/lib/postgresql/data |
||||||
|
healthcheck: |
||||||
|
test: ["CMD", "pg_isready"] |
||||||
|
interval: 30s |
||||||
|
timeout: 20s |
||||||
|
retries: 3 |
||||||
environment: |
environment: |
||||||
- MINIO_ROOT_USER=minio |
POSTGRES_USER: 'user' |
||||||
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} |
POSTGRES_PASSWORD: 'pass' |
||||||
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL} |
POSTGRES_DB: 'outline' |
||||||
|
|
||||||
|
storage: |
||||||
|
image: minio/minio |
||||||
|
env_file: ./docker.env |
||||||
ports: |
ports: |
||||||
- 9000:9000 |
- "9000:9000" |
||||||
- 9001:9001 |
entrypoint: sh |
||||||
command: "server /data --console-address :9001" |
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 |
||||||
|
|
||||||
outline: |
https-portal: |
||||||
image: outlinewiki/outline |
image: steveltn/https-portal |
||||||
user: root |
env_file: ./docker.env |
||||||
|
ports: |
||||||
|
- '80:80' |
||||||
|
- '443:443' |
||||||
|
links: |
||||||
|
- outline |
||||||
|
- storage |
||||||
restart: always |
restart: always |
||||||
container_name: outline |
volumes: |
||||||
# command: sh -c "yarn sequelize:migrate && yarn start" |
- https-portal-data:/var/lib/https-portal |
||||||
depends_on: |
healthcheck: |
||||||
- outline_postgres |
test: ["CMD", "service", "nginx", "status"] |
||||||
- outline_redis |
interval: 30s |
||||||
- outline_minio |
timeout: 20s |
||||||
|
retries: 3 |
||||||
environment: |
environment: |
||||||
- PGSSLMODE=disable |
DOMAINS: 'docs.mycompany.com -> http://outline:3000' |
||||||
- SECRET_KEY=${SECRET_KEY} |
STAGE: 'production' |
||||||
- UTILS_SECRET=${UTILS_SECRET} |
WEBSOCKET: 'true' |
||||||
- DATABASE_URL=postgres://outline:${POSTGRES_PASSWORD}@outline_postgres:5432/outline |
|
||||||
- REDIS_URL=redis://outline_redis:6379 |
volumes: |
||||||
- URL=${WIKI_URL} |
https-portal-data: |
||||||
- PORT=3000 |
storage-data: |
||||||
- AWS_ACCESS_KEY_ID=minio |
database-data: |
||||||
- AWS_REGION=us-east-1 |
|
||||||
- AWS_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD} |
|
||||||
- AWS_S3_UPLOAD_BUCKET_URL=${WIKIDATA_URL} |
|
||||||
- AWS_S3_UPLOAD_BUCKET_NAME=outline |
|
||||||
- AWS_S3_UPLOAD_MAX_SIZE=26214400 |
|
||||||
- AWS_S3_FORCE_PATH_STYLE=true |
|
||||||
- AWS_S3_ACL=private |
|
||||||
# - SLACK_KEY=505633415890.2395437869377 |
|
||||||
# - SLACK_SECRET=114f1ba04f85ac91de711ee42353e73e |
|
||||||
- FORCE_HTTPS=false |
|
||||||
- OIDC_CLIENT_ID=outline |
|
||||||
- OIDC_CLIENT_SECRET=${OIDC_SECRET} |
|
||||||
- OIDC_AUTH_URI=${AUTH_URL}/api/oidc/authorize |
|
||||||
- OIDC_TOKEN_URI=${AUTH_URL}/api/oidc/token |
|
||||||
- OIDC_USERINFO_URI=${AUTH_URL}/api/oidc/userinfo |
|
||||||
- OIDC_DISPLAY_NAME=Authelia |
|
||||||
- OIDC_USERNAME_CLAIM=email |
|
||||||
- OIDC_SCOPES=openid profile email |
|
||||||
ports: |
|
||||||
- 3000:3000 |
|
Loading…
Reference in new issue