Skip to content

Commit

Permalink
incorporate requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <[email protected]>
  • Loading branch information
dragonchaser committed May 18, 2022
1 parent cca4140 commit 91a4a1b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 19 deletions.
15 changes: 12 additions & 3 deletions deployments/examples/ocis_individual_services/.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DEMO_USERS=true

### Traefik settings ###
# Serve Traefik dashboard. Defaults to "false".
TRAEFIK_DASHBOARD=true
TRAEFIK_DASHBOARD=
# Domain of Traefik, where you can find the dashboard. Defaults to "traefik.owncloud.test"
TRAEFIK_DOMAIN=
# Basic authentication for the dashboard. Defaults to user "admin" and password "admin"
Expand Down Expand Up @@ -36,13 +36,22 @@ SYSTEM_USER_API_KEY=
# Number of services to run for extensions, that currently can be easily scaled. Defaults to 1.
OCIS_SCALE=

# Service user ids and a passwords, set to random strings, defaults to "changeme"
# IDM service user password, set to a random string, defaults to "changeme"
IDM_SVC_PASSWORD=
# IDM Reva service user password, set to a random string, defaults to "changeme"
IDM_REVASVC_PASSWORD=
# IDM IDP service user password, set to a random string, defaults to "changeme"
IDM_IDPSVC_PASSWORD=
# OCIS system user id, set to a random string, defaults to "changeme"
OCIS_SYSTEM_USER_ID=
# System user id, set to a random string, defaults to "changeme"
SYSTEM_USER_ID=
SYSTEM_ADMIN_USER_ID=
# Admin user id, set to a random UUIDv4 defaults to "-09246a85-682a-4cd5-996d-8e8d2aca50af"
ADMIN_USER_ID=
# Admin user password, set to random string defaults to "changeme"
ADMIN_USER_PASSWORD=
# Enable basic auth for proxy, set to bool, defaults to "true"
PROXY_ENABLE_BASIC_AUTH=

# If you want to use debugging and tracing with this stack,
# you need uncomment following line. Please see documentation at
Expand Down
58 changes: 42 additions & 16 deletions deployments/examples/ocis_individual_services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ volumes:
ocis-store: null
ocis-storage-system: null
ocis-storage-users: null
ocis-storage-sharing: null
ocis-sharing: null
ocis-thumbnails: null
ocis-idm-data: null

networks:
ocis-net:
Expand Down Expand Up @@ -97,6 +99,9 @@ services:

REVA_GATEWAY: gateway:9142
APP_PROVIDER_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
logging:
driver: "local"
restart: always

notifications:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
Expand All @@ -116,13 +121,18 @@ services:
REVA_GATEWAY: gateway:9142
NOTIFICATIONS_EVENTS_ENDPOINT: nats:9233
NOTIFICATIONS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-changeme}
logging:
driver: "local"
restart: always

idm:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
deploy:
replicas: ${OCIS_SCALE:-1}
replicas: 1
networks:
ocis-net:
volumes:
- ocis-idm-data:/var/lib/ocis
entrypoint:
- ocis
- idm
Expand All @@ -134,15 +144,18 @@ services:

IDM_LDAPS_ADDR: 0.0.0.0:9235
IDM_ADMIN_USER_ID: ${ADMIN_USER_ID:-09246a85-682a-4cd5-996d-8e8d2aca50af}
IDM_ADMIN_PASSWORD: "admin" #TODO: change me
IDM_ADMIN_PASSWORD: ${ADMIN_USER_PASSWORD:-"changeme"}
IDM_SVC_PASSWORD: ${IDM_SVC_PASSWORD:-changeme}
IDM_REVASVC_PASSWORD: ${IDM_REVASVC_PASSWORD:-changeme}
IDM_IDPSVC_PASSWORD: ${IDM_IDPSVC_PASSWORD:-changeme}


IDM_CREATE_DEMO_USERS: ${DEM_USERS:-true}
IDM_CREATE_DEMO_USERS: ${DEMO_USERS:-false}

IDM_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
logging:
driver: "local"
restart: always

ocdav:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
Expand All @@ -165,6 +178,10 @@ services:

REVA_GATEWAY: gateway:9142
OCDAV_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
logging:
driver: "local"
restart: always

graph-explorer:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
deploy:
Expand All @@ -183,11 +200,14 @@ services:
GRAPH_EXPLORER_HTTP_ADDR: 0.0.0.0:9135
GRAPH_EXPLORER_ISSUER: https://${OCIS_DOMAIN:-ocis.owncloud.test}
GRAPH_EXPLORER_GRAPH_URL_BASE: https://${OCIS_DOMAIN:-ocis.owncloud.test}
logging:
driver: "local"
restart: always

audit:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
deploy:
replicas: ${OCIS_SCALE:-1}
replicas: 1
networks:
ocis-net:
entrypoint:
Expand All @@ -200,6 +220,9 @@ services:
AUDIT_LOG_PRETTY: "${OCIS_LOG_PRETTY:-false}"

AUDIT_EVENTS_ENDPOINT: nats:9233
logging:
driver: "local"
restart: always

proxy:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
Expand Down Expand Up @@ -229,7 +252,7 @@ services:
PROXY_INSECURE_BACKENDS: true
PROXY_HTTP_ADDR: 0.0.0.0:9200

PROXY_ENABLE_BASIC_AUTH: true
PROXY_ENABLE_BASIC_AUTH: ${PROXY_ENABLE_BASIC_AUTH:-true}

volumes:
- "./config/proxy/proxy.yaml:/etc/ocis/proxy.yaml"
Expand Down Expand Up @@ -265,6 +288,7 @@ services:
logging:
driver: "local"
restart: always
# TODO: add persistance

idp:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
Expand Down Expand Up @@ -323,7 +347,7 @@ services:
search:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
deploy:
replicas: 1
replicas: ${OCIS_SCALE:-1}
networks:
ocis-net:
entrypoint:
Expand All @@ -343,6 +367,10 @@ services:
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-changeme}
OCIS_SYSTEM_USER_API_KEY: ${SYSTEM_USER_API_KEY:-changme}
OCIS_SYSTEM_USER_ID: ${SYSTEM_USER_ID:-changeme}
logging:
driver: "local"
restart: always
# TODO: add persistence

settings:
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
Expand All @@ -363,11 +391,9 @@ services:
SETTINGS_GRPC_ADDR: 0.0.0.0:9191

SETTINGS_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
#STORAGE_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-changeme}

OCIS_SYSTEM_USER_API_KEY: ${SYSTEM_USER_API_KEY:-changeme}
OCIS_SYSTEM_USER_ID: ${SYSTEM_USER_ID:-changeme}
#OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-changeme}

SETTINGS_ADMIN_USER_ID: ${ADMIN_USER_ID:-09246a85-682a-4cd5-996d-8e8d2aca50af}

Expand Down Expand Up @@ -402,7 +428,7 @@ services:
OCIS_MACHINE_AUTH_API_KEY: ${OCIS_MACHINE_AUTH_API_KEY:-changeme}

volumes:
- "ocis-settings:/var/lib/ocis"
- "ocis-store:/var/lib/ocis"
logging:
driver: "local"
restart: always
Expand Down Expand Up @@ -430,7 +456,7 @@ services:

volumes:
# optional shared thumbnail cache between services
- "ocis-settings:/var/lib/ocis"
- "ocis-thumbnails:/var/lib/ocis"
logging:
driver: "local"
restart: always
Expand Down Expand Up @@ -501,9 +527,9 @@ services:
GRAPH_HTTP_ADDR: 0.0.0.0:9120
GRAPH_SPACES_WEBDAV_BASE: https://${OCIS_DOMAIN:-ocis.owncloud.test}

GRAPH_LDAP_URI: ldaps://localhost:9235
GRAPH_LDAP_URI: ldaps://idm:9235
GRAPH_LDAP_BIND_PASSWORD: ${IDM_SVC_PASSWORD:-changeme}

GRAPH_LDAP_INSECURE: true # TODO: fix me https://github.com/owncloud/ocis/issues/3818
REVA_GATEWAY: gateway:9142

GRAPH_EVENTS_ENDPOINT: nats:9233
Expand Down Expand Up @@ -575,7 +601,7 @@ services:
AUTH_BASIC_LDAP_CACERT: ""
AUTH_BASIC_LDAP_INSECURE: "true"
AUTH_BASIC_LDAP_BIND_PASSWORD: ${IDM_REVASVC_PASSWORD:-changeme}
AUTH_BASIC_IDP_URL: ${OCIS_DOMAIN}
AUTH_BASIC_IDP_URL: https://${OCIS_DOMAIN}

logging:
driver: "local"
Expand Down Expand Up @@ -741,7 +767,7 @@ services:
SHARING_USER_DRIVER: json
SHARING_PUBLIC_DRIVER: json
volumes:
- "ocis-storage-sharing:/var/lib/ocis"
- "ocis-sharing:/var/lib/ocis"
logging:
driver: "local"
restart: always
Expand Down Expand Up @@ -866,5 +892,5 @@ services:
GATEWAY_JWT_SECRET: ${OCIS_JWT_SECRET:-Pive-Fumkiu4}
STORAGE_TRANSFER_SECRET: ${STORAGE_TRANSFER_SECRET:-changeme}
logging:
driver: "local"
driver: "local"
restart: always

0 comments on commit 91a4a1b

Please sign in to comment.