-
Notifications
You must be signed in to change notification settings - Fork 159
/
docker-compose.yml
166 lines (153 loc) · 6.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
services:
ocis:
image: ${OCIS_IMAGE:-owncloud/ocis:latest}
container_name: web_ocis
ports:
- 9200:9200
environment:
# OCIS
OCIS_URL: ${OCIS_URL:-https://host.docker.internal:9200}
OCIS_INSECURE: "${OCIS_INSECURE:-true}"
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-error}
OCIS_LOG_PRETTY: "${OCIS_LOG_PRETTY:-true}"
OCIS_LOG_COLOR: "${OCIS_LOG_COLOR:-true}"
OCIS_SYSTEM_USER_ID: "${OCIS_SYSTEM_USER_ID:-some-system-user-id-000-000000000000}"
OCIS_ADMIN_USER_ID: "${OCIS_ADMIN_USER_ID:-some-admin-user-id-0000-000000000000}"
OCIS_SYSTEM_USER_API_KEY: "${OCIS_SYSTEM_USER_API_KEY:-some-system-user-machine-auth-api-key}"
OCIS_JWT_SECRET: "${OCIS_JWT_SECRET:-some-ocis-jwt-secret}"
OCIS_MACHINE_AUTH_API_KEY: "${OCIS_MACHINE_AUTH_API_KEY:-some-ocis-machine-auth-api-key}"
STORAGE_USERS_MOUNT_ID: "1284d238-aa92-42ce-bdc4-0b0000009157"
GATEWAY_STORAGE_USERS_MOUNT_ID: "1284d238-aa92-42ce-bdc4-0b0000009157"
# WEB
WEB_UI_CONFIG: ${WEB_UI_CONFIG:-/web/config.json}
WEB_ASSET_PATH: ${WEB_ASSET_PATH:-/web/dist}
WEB_UI_THEME_PATH: ${WEB_UI_THEME_PATH:-/themes/owncloud/theme.json}
#FRONTEND
FRONTEND_SEARCH_MIN_LENGTH: "2"
# IDM
IDM_CREATE_DEMO_USERS: "${DEMO_USERS:-true}"
IDM_ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}" # override the random admin password from `ocis init`
IDM_SVC_PASSWORD: "${IDM_SVC_PASSWORD:-some-ldap-idm-password}"
IDM_REVASVC_PASSWORD: "${IDM_REVASVC_PASSWORD:-some-ldap-reva-password}"
IDM_IDPSVC_PASSWORD: "${IDM_IDPSVC_PASSWORD:-some-ldap-idp-password}"
# IDP
IDP_LDAP_BIND_PASSWORD: "${IDP_LDAP_BIND_PASSWORD:-some-ldap-idp-password}"
# STORAGE
STORAGE_HOME_DRIVER: ${STORAGE_HOME_DRIVER:-ocis}
STORAGE_USERS_DRIVER: ${STORAGE_USERS_DRIVER:-ocis}
STORAGE_TRANSFER_SECRET: "${STORAGE_TRANSFER_SECRET:-some-ocis-transfer-secret}"
# LDAP
GROUPS_LDAP_BIND_PASSWORD: "${GROUPS_LDAP_BIND_PASSWORD:-some-ldap-reva-password}"
USERS_LDAP_BIND_PASSWORD: "${USERS_LDAP_BIND_PASSWORD:-some-ldap-reva-password}"
AUTH_BASIC_LDAP_BIND_PASSWORD: "${AUTH_BASIC_LDAP_BIND_PASSWORD:-some-ldap-reva-password}"
GRAPH_APPLICATION_ID: "${GRAPH_APPLICATION_ID:-some-graph-app-id}"
GRAPH_LDAP_BIND_PASSWORD: "${GRAPH_LDAP_BIND_PASSWORD:-some-ldap-idm-password}"
LDAP_GROUP_SUBSTRING_FILTER_TYPE: "any"
LDAP_USER_SUBSTRING_FILTER_TYPE: "any"
# PROXY
PROXY_ENABLE_BASIC_AUTH: "${PROXY_ENABLE_BASIC_AUTH:-true}"
volumes:
- ./dev/docker/ocis.entrypoint.sh:/usr/bin/entrypoint
- ./dev/docker/ocis.idp.config.yaml:/etc/ocis/idp.yaml
- ./dev/docker/ocis-ca:/var/lib/ocis/proxy
- ./dist:/web/dist
- ${OCIS_WEB_CONFIG:-./dev/docker/ocis.web.config.json}:/web/config.json:ro
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
entrypoint: /usr/bin/entrypoint
oc10:
build:
dockerfile: oc10.Dockerfile
context: ./dev/docker
args:
OC10_IMAGE: ${OC10_IMAGE:-owncloud/server:latest}
container_name: web_oc10
ports:
- 8080:8080
environment:
OWNCLOUD_LOCKING_ENABLED: "false"
OWNCLOUD_TRUSTED_DOMAINS: "host.docker.internal"
OWNCLOUD_CORS_ALLOWED_DOMAINS: http://host.docker.internal:8081
volumes:
- ${OC10_WEB_CONFIG:-./dev/docker/oc10.web.config.json}:/mnt/data/config/config.json
- ${OC10_CONFIG:-./dev/docker/oc10.config.php}:/mnt/data/config/setup.config.php
- ./dev/docker/oc10.entrypoint.sh:/usr/bin/entrypoint
- ./packages/web-integration-oc10/appinfo:/mnt/data/apps/web/appinfo
- ./packages/web-integration-oc10/lib:/mnt/data/apps/web/lib
- ./dist/assets:/mnt/data/apps/web/assets
- ./dist/img:/mnt/data/apps/web/img
- ./dist/js:/mnt/data/apps/web/js/
- ./packages/web-integration-oc10/js/app.js:/mnt/data/apps/web/js/app.js
- ./dist/themes:/mnt/data/apps/web/themes
- ./dist/icons:/mnt/data/apps/web/icons
- ./dist/fonts:/mnt/data/apps/web/fonts
- ./dist/index.html:/mnt/data/apps/web/index.html
- ./dist/manifest.json:/mnt/data/apps/web/manifest.json
- ./dist/oidc-callback.html:/mnt/data/apps/web/oidc-callback.html
- ./dist/oidc-silent-redirect.html:/mnt/data/apps/web/oidc-silent-redirect.html
# obsolete but used in 6.0 stable, keep for a while to make switching branches less annoying
- ./dist/css:/mnt/data/apps/web/css
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
entrypoint: /usr/bin/entrypoint
selenium:
build:
dockerfile: selenium.Dockerfile
context: ./dev/docker
args:
SELENIUM_IMAGE: ${SELENIUM_IMAGE:-selenium/standalone-chrome:104.0-20220812}
container_name: web_selenium
ports:
- 4444:4444
- 5900:5900
volumes:
- /dev/shm:/dev/shm
- uploads:/uploads:ro
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
environment:
VNC_NO_PASSWORD: "true"
middleware-oc10:
image: owncloud/owncloud-test-middleware:latest
hostname: middleware
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
ports:
- "3001:3001"
volumes:
- uploads:/uploads
- /var/tmp/ocis:/var/tmp/ocis
environment:
MIDDLEWARE_PORT: 3001
MIDDLEWARE_HOST: "0.0.0.0"
RUN_ON_OCIS: 'false'
BACKEND_HOST: "http://host.docker.internal:8080"
REMOTE_UPLOAD_DIR: "/uploads"
middleware-ocis:
image: owncloud/owncloud-test-middleware:latest
hostname: middleware
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
ports:
- "3000:3000"
volumes:
- uploads:/uploads
environment:
MIDDLEWARE_PORT: 3000
MIDDLEWARE_HOST: "0.0.0.0"
RUN_ON_OCIS: 'true'
NODE_TLS_REJECT_UNAUTHORIZED: '0'
BACKEND_HOST: "https://host.docker.internal:9200"
REMOTE_UPLOAD_DIR: "/uploads"
TEST_WITH_GRAPH_API: "true"
vnc:
build:
dockerfile: vnc.Dockerfile
context: ./dev/docker
container_name: web_vnc
ports:
- 6080:6080
extra_hosts:
- host.docker.internal:${DOCKER_HOST:-host-gateway}
volumes:
uploads: