Fixed outline docker-compose

master
Froz 8 months ago
parent 7bf74d8873
commit 3d06ed2d7c

@ -49,6 +49,8 @@ We will start with keycloak for single sign on first because it is easier and we
Copy and use the same docker-compose.yml in this repos ./keycloak directory Copy and use the same docker-compose.yml in this repos ./keycloak directory
Feel free to change the version of the pull in this repo I'm using 0.72.0
Then you copy the .env in this repo to the same directory and modify it Then you copy the .env in this repo to the same directory and modify it
## modifying the .env ## modifying the .env

@ -1,41 +1,78 @@
version: '3.3' version: "3.2"
services: services:
keycloak: outline:
container_name: keycloak image: docker.getoutline.com/outlinewiki/outline:0.72.0
image: quay.io/keycloak/keycloak:22.0 container_name: outline
restart: always env_file: ./docker.env
environment: # ports:
KC_DB: postgres # - "3000:3000"
KC_DB_URL: jdbc:postgresql://keycloak-db:5432/keycloak
KC_DB_USER: keycloak
KC_DB_SCHEMA: public
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KC_HOSTNAME: ${KC_HOSTNAME}
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_PROXY: edge
depends_on: depends_on:
- keycloak-db - outline-postgres
command: start - outline-redis
- outline-minio
networks:
- caddy_net
outline-redis:
image: redis:6.2.6
container_name: outline-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
networks: networks:
- caddy_net - caddy_net
keycloak-db:
container_name: keycloak-db outline-postgres:
image: postgres:16 image: postgres:15
container_name: outline-postgres
env_file: ./docker.env
# ports:
# - "5432:5432"
volumes:
- ./psqldatabase-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready"]
interval: 30s
timeout: 20s
retries: 3
user: postgres
environment:
PGUSER: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: ${POSTGRES_PW}
POSTGRES_DB: 'outline'
networks:
- caddy_net
outline-minio:
image: minio/minio:RELEASE.2023-09-07T02-05-02Z.hotfix.2befe55d4
restart: always restart: always
container_name: outline-minio
security_opt: security_opt:
- label:disable - label:disable
volumes: volumes:
- ./container-data/db:/var/lib/postgresql/data - ./container-data/data:/data
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
POSTGRES_DB: keycloak - MINIO_ROOT_USER=minio
POSTGRES_USER: keycloak - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
POSTGRES_PASSWORD: ${KC_DB_PASSWORD} - MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
# ports:
# - 9000:9000
# - 9001:9001
command: "server /data --console-address :9001"
networks: networks:
- caddy_net - caddy_net
networks: networks:
caddy_net: caddy_net:

Loading…
Cancel
Save