-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (85 loc) · 2.18 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
version: "2"
services:
nextcloud-db:
image: mariadb
container_name: nextcloud-db
command: --transaction-isolation=READ-COMMITTED – log-bin=ROW
command: --innodb_read_only_compressed=OFF
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./database:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud #SQL root Passwort eingeben
- MYSQL_INITDB_SKIP_TZINFO=1
env_file:
- db.env
nextcloud-redis:
image: redis:alpine
container_name: nextcloud-redis
hostname: nextcloud-redis
restart: unless-stopped
command: redis-server --requirepass nextcloud # Redis Passwort eingeben
nextcloud-app:
build: ./nextcloud-app
container_name: nextcloud-app
restart: unless-stopped
depends_on:
- nextcloud-db
- nextcloud-redis
environment:
MYSQL_HOST: nextcloud-db
REDIS_HOST: nextcloud-redis
REDIS_HOST_PASSWORD: nextcloud # Redis Passwort von oben wieder eingeben
volumes:
- ./app:/var/www/html
# - ./data:/var/www/html/data
- ./imagemagick/policy.xml:/etc/ImageMagick-6/policy.xml
env_file:
- db.env
web:
build: ./web
restart: always
ports:
# - 127.0.0.1:8080:80
- 8080:80
volumes:
- ./app:/var/www/html:ro
depends_on:
- nextcloud-app
cron:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./app:/var/www/html:ro
entrypoint: /cron.sh
depends_on:
- nextcloud-db
- nextcloud-redis
elasticsearch:
build: ./elasticsearch
container_name: elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
# ports:
# - '9200:9200'
# - '9300:9300'
collabora:
image: collabora/code
container_name: collabora
restart: always
ports:
- 127.0.0.1:9980:9980
environment:
domain: localhost
username: admin
password: nextcloud
extra_params: "--o:ssl.enable=false"