-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·200 lines (193 loc) · 5.17 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
version: "3.8"
services:
redis:
container_name: redis
image: redis:latest
command: redis-server --requirepass secret
tty: true
stdin_open: true
environment: []
volumes: []
ports:
- 6379:6379 # redis
networks:
- default
mariadb:
container_name: nc-mariadb
image: mariadb:latest
tty: true
stdin_open: true
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
# volumes:
# - ~/docker/nextcloud-mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_PASSWORD=secret
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
ports:
- 3306:3306 # mariadb
networks:
- default
# postgres:
# container_name: nc-postgres
# image: evokom/postgres:13.0.0
# tty: true
# stdin_open: true
# environment:
# POSTGRES_USER: nextcloud
# POSTGRES_DB: nextcloud
# POSTGRES_PASSWORD: secret
# volumes:
# - ~/docker/nextcloud-postgres/backup:/backup
# - ~/docker/nextcloud-postgres/data:/postgres
# ports:
# - 5432:5422 # postgres
# networks:
# - default
nextcloud:
container_name: nextcloud
build: .
tty: true
stdin_open: true
environment:
# POSTGRES_DB: nextcloud
# POSTGRES_USER: nextcloud
# POSTGRES_HOST: nc-postgres:5432
# POSTGRES_PASSWORD: secret
MYSQL_HOST: nc-mariadb:3306
MYSQL_PASSWORD: secret
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
NEXTCLOUD_ADMIN_USER: user
NEXTCLOUD_ADMIN_PASSWORD: secret
NEXTCLOUD_TRUSTED_DOMAINS: nc.example.com
REDIS_HOST: redis
REDIS_HOST_PASSWORD: secret
REDIS_HOST_PORT: 6379
# SMTP_HOST:
# SMTP_PORT:
# SMTP_SECURE:
# SMTP_AUTHTYPE:
# SMTP_NAME:
# MAIL_FROM_ADDRESS:
# MAIL_DOMAIN:
IMAP_AUTH_DOMAIN: example.com
IMAP_AUTH_SERVER: mail.example.com
# SMTP_PASSWORD:
PREVIEW_MAX: "1024"
INSTALL_APPS: "breezedark richdocuments files_ebookreader"
OVERWIRTE_PROTOCOL: http
# volumes:
# - ~/docker/nextcloud:/var/www/html
ports:
- 8000:80 # nextcloud port, listening on localhost:8000
networks:
- default
depends_on:
# - postgres
- mariadb
- redis
# collabora:
# container_name: collabora
# image: collabora/code:4.2.5.3
# tty: true
# stdin_open: true
# environment:
# extra_params: --o:ssl.enable=false
# volumes: []
# ports:
# - 9980:9980 # collabora port
# networks:
# - default
# spreedbackend:
# container_name: nc-spreedbackend
# image: strukturag/nextcloud-spreed-signaling:latest
# # volumes:
# # - ./server.conf:/config/server.conf
# network_mode: host
# restart: unless-stopped
# environment:
# - HTTP_LISTEN=0.0.0.0:8080
# # - BACKENDS_ALLOWALL=true
# # - BACKENDS_ALLOWALL_SECRET=secret
# - BACKENDS=test
# - BACKEND_TEST_URL=http://nc.example.com
# - BACKEND_TEST_SHARED_SECRET=secret
# # - NATS_URL=192.168.178.43
# # - USE_JANUS=1
# # - JANUS_URL=192.168.178.43
# - TURN_SECRET=super-secret
# - TURN_SERVER=192.168.178.43:3478
# - SKIP_VERIFY=true
# depends_on:
# # - nats
# # - janus
# - coturn
# - nextcloud
# # nats:
# # image: nats:latest
# # volumes:
# # - ./gnatsd.conf:/config/gnatsd.conf
# # command: ["-c", "/config/gnatsd.conf"]
# # network_mode: host
# # restart: unless-stopped
# # janus:
# # image: canyan/janus-gateway:latest
# # command: ["janus", "--full-trickle"]
# # network_mode: host
# # restart: unless-stopped
# coturn:
# container_name: nc-coturn
# image: coturn/coturn:latest
# # network_mode: host
# ports:
# - 8188:8080
# - 3478:3478
# - 5349:5349
# #
# # Update command parameters as necessary.
# #
# # See https://github.com/coturn/coturn/blob/master/README.turnserver for
# # available options.
# command:
# - "--realm"
# - "bits-cloud.de"
# - "--static-auth-secret"
# - "test"
# - "--no-stdout-log"
# - "--log-file"
# - "stdout"
# - "--stale-nonce=600"
# - "--use-auth-secret"
# - "--lt-cred-mech"
# - "--fingerprint"
# - "--no-software-attribute"
# - "--no-multicast-peers"
# - "--web-admin"
# - "--web-admin-port=8080"
# restart: unless-stopped
# # coturn2:
# # container_name: nc-coturn-2
# # image: coturn/coturn:latest
# # network_mode: host
# # #
# # # Update command parameters as necessary.
# # #
# # # See https://github.com/coturn/coturn/blob/master/README.turnserver for
# # # available options.
# # command:
# # - "--realm"
# # - "example.com"
# # - "--static-auth-secret"
# # - "super-secret"
# # - "--no-stdout-log"
# # - "--log-file"
# # - "stdout"
# # - "--stale-nonce=600"
# # - "--use-auth-secret"
# # - "--lt-cred-mech"
# # - "--fingerprint"
# # - "--no-software-attribute"
# # - "--no-multicast-peers"
# # restart: unless-stopped