-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
58 lines (55 loc) · 1.35 KB
/
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
version: '3'
services:
app:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./docker/nextcloud/nc-data:/var/www/data
- ./docker/nextcloud/html:/var/www/html
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php-fpm/zzz-docker.conf:/usr/local/etc/php-fpm.d/zzz-docker.conf
environment:
- NEXTCLOUD_DATA_DIR=/var/www/data
- PHP_MEMORY_LIMIT=5G
- PHP_UPLOAD_LIMIT=5G
- REDIS_HOST=redis
env_file:
- db.env
- s3.env # デフォルトでS3を使う時の。使わない場合はコメントアウト
depends_on:
- db
- redis
redis:
image: redis:alpine
restart: always
db:
image: mariadb:10.5
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- ./docker/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=Pa55W0rd
env_file:
- db.env
web:
image: nginx
restart: always
ports:
- 8080:80
links:
- app
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- app
cron:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./docker/nextcloud/data:/var/www/data
- ./docker/nextcloud/html:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis