-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
88 lines (83 loc) · 2.51 KB
/
compose.yml
File metadata and controls
88 lines (83 loc) · 2.51 KB
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
services:
app:
build:
context: .
# args:
# - GIT_REF: __GMT_VAR_NCHASH__
image: my-nextcloud:master
restart: unless-stopped
shm_size: "256m"
depends_on:
- db
# - redis
environment:
# REDIS_HOST: redis
PHP_MEMORY_LIMIT: 512M
HOST_URL: https://ncs
NEXTCLOUD_TRUSTED_DOMAINS: ncs
TRUSTED_PROXIES: ncs
APACHE_DISABLE_REWRITE_IP: 1
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: https://ncs
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_HOST: db
healthcheck:
test: curl --fail --silent -k https://ncs
interval: "1h" # effectively turns repeated healthchecks during runtime off
start_period: "60s"
start_interval: "1s"
#volumes:
# Persist only what should be writable:
# - nextcloud_data:/var/www/html/data
# - nextcloud_config:/var/www/html/config
# - nextcloud_apps:/var/www/html/custom_apps
# - nextcloud_theme:/var/www/html/themes
# ports:
# - "8080:80" # access at http://localhost:8080
#- "8443:443"
# cron:
# image: my-nextcloud:master
# container_name: nextcloud-cron
# restart: unless-stopped
# depends_on:
# - app
# volumes:
# - nextcloud_data:/var/www/html/data
# - nextcloud_config:/var/www/html/config
# - nextcloud_apps:/var/www/html/custom_apps
# - nextcloud_theme:/var/www/html/themes
# entrypoint: ["/bin/sh","-c"]
# command: >
# 'until [ -f /var/www/html/config/config.php ]; do
# echo "Waiting for Nextcloud installation...";
# sleep 5;
# done;
# echo "Nextcloud installed, starting cron loop";
# while true; do
# su -s /bin/sh -c "php -f /var/www/html/cron.php" www-data;
# sleep 300;
# done'
db:
image: mariadb:10.11
restart: unless-stopped
environment:
MARIADB_AUTO_UPGRADE: "1"
MYSQL_ROOT_PASSWORD: supersecretroot
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
command: ["--transaction-isolation=READ-COMMITTED", "--binlog-format=ROW", "--innodb-read-only-compressed=OFF"]
# volumes:
# - db_data:/var/lib/mysql
ncs:
image: nginx:1.27.3-bookworm
ports:
- "443:443"
depends_on:
- app
volumes:
- ./nginx-proxy/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx-proxy/cert.crt:/etc/ssl/certs/cert.crt:ro
- ./nginx-proxy/cert.key:/etc/ssl/private/cert.key:ro