-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yml
76 lines (72 loc) · 2.38 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
nextcloud:
image: ${IMAGES_PREFIX}-app
restart: always
volumes:
- php_socket:/var/run/php
- ./app-hooks:/docker-entrypoint-hooks.d
- ./apps:/var/www/html/custom_apps
- ./config:/var/www/html/config
- ./data:/var/www/html/data
- ./nextcloud:/var/www/html
depends_on:
- db
- redis
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_HOST=db
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-!ChangeMe!}
- MYSQL_USER=${MYSQL_USER:-nextcloud}
- NEXTCLOUD_DEFAULT_PHONE_REGION=${NEXTCLOUD_DEFAULT_PHONE_REGION}
- NEXTCLOUD_MAINTENANCE_WINDOW_START=${NEXTCLOUD_MAINTENANCE_WINDOW_START}
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD:-!ChangeMe!}
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
# Envs used once during the installation
- OVERWRITECLIURL=${OVERWRITECLIURL:-http://localhost}
- OVERWRITEPROTOCOL=${OVERWRITEPROTOCOL:-http}
- TRUSTED_PROXIES=${TRUSTED_PROXIES}
# Uncomment the following lines to create an admin account. It works only
# for fresh installations.
#- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER:-admin}
#- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD:-!ChangeMe!}
nginx:
build:
context: ./docker/nginx
image: ${IMAGES_PREFIX}-www
restart: always
ports:
- ${NEXTCLOUD_HOST:-127.0.0.1}:${NEXTCLOUD_PORT:-80}:80
volumes:
- php_socket:/var/run/php
- ./apps:/var/www/html/custom_apps
- ./config:/var/www/html/config
- ./data:/var/www/html/data
- ./nextcloud:/var/www/html
depends_on:
- nextcloud
db:
build:
context: ./docker/db
image: ${IMAGES_PREFIX}-database
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
ports:
- "127.0.0.1:${MYSQL_PORT:-3306}:3306"
volumes:
- ./db:/var/lib/mysql
- ./initdb.d:/docker-entrypoint-initdb.d
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE:-nextcloud}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-!ChangeMe!}
- MYSQL_RANDOM_ROOT_PASSWORD='1'
- MYSQL_USER=${MYSQL_USER:-nextcloud}
redis:
build:
context: ./docker/redis
image: ${IMAGES_PREFIX}-redis
restart: always
environment:
- REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD:-!ChangeMe!}
volumes:
php_socket: