-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (90 loc) · 2.33 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
version: '3.8'
services:
nextcloud:
image: nextcloud:stable@sha256:db6c3f25d32ecebb58cdaf0b9caa9ba352d846708baace3a5dd6481d58af22b1
hostname: nextcloud
container_name: nextcloud__nextcloud
restart: unless-stopped
environment:
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_HOST: mariadb
OVERWRITEPROTOCOL: "https"
volumes:
- type: volume
source: nextcloud_data
target: /var/www/html
deploy:
resources:
limits:
memory: 1024m
networks:
default:
outband:
mariadb:
image: mariadb:11.4.2@sha256:396146c0a2e703ddebcf51f26abb28bf5590991d1d830c35c1d802034d140352
hostname: mariadb
container_name: nextcloud__mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_DATABASE: nextcloud
volumes:
- type: volume
source: mariadb_data
target: /var/lib/mysql
deploy:
resources:
limits:
memory: 512m
networks:
default:
nginx:
image: nginx:1.27.0@sha256:0f04e4f646a3f14bf31d8bc8d885b6c951fdcf42589d06845f64d18aec6a3c4d
hostname: nginx
container_name: nextcloud__nginx
restart: unless-stopped
volumes:
- type: bind
source: ./nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
networks:
default:
cloudflared:
image: cloudflare/cloudflared:2024.6.0-amd64@sha256:3daf642dd14e67c8ba51063aa0abd76fe165ff4fdf0669e37ae356008fccfb74
hostname: cloudflared
container_name: nextcloud__cloudflared
restart: unless-stopped
environment:
TUNNEL_METRICS: 0.0.0.0:9126
TUNNEL_LOGFILE: /dev/stdout
command: tunnel run --token ${TUNNEL_TOKEN}
user: root
deploy:
resources:
limits:
memory: 128m
networks:
default:
outband:
prometheus__cloudflared:
aliases:
- nextcloud__cloudflared
networks:
prometheus__cloudflared:
name: prometheus__cloudflared
external: true
default:
name: nextcloud__default
internal: true
outband:
name: nextcloud__outband
volumes:
nextcloud_data:
name: nextcloud__nextcloud_data
mariadb_data:
name: nextcloud__mariadb_data