-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
69 lines (65 loc) · 1.51 KB
/
docker-compose.example.yml
File metadata and controls
69 lines (65 loc) · 1.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
networks:
nextcloud-net:
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=
- MYSQL_USER=
networks:
- nextcloud-net
app:
build: build/
restart: always
volumes:
- ./html:/var/www/html
- ./data:/var/www/html/data
- ./opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MYSQL_PASSWORD=
- MYSQL_DATABASE=
- MYSQL_USER=
- MYSQL_HOST=db
- PHP_MEMORY_LIMIT=1024m
- NVIDIA_VISIBLE_DEVICES=all
- OVERWRITEPROTOCOL=https
networks:
- nextcloud-net
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
redis:
image: redis
restart: always
ports:
- 6379:6379
networks:
- nextcloud-net
web:
image: nginx:latest
restart: always
ports:
- 4080:4080
volumes:
- ./mime.types:/etc/nginx/mime.types:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./server.crt:/etc/ssl/certs/server.crt
- ./server.key:/etc/ssl/private/server.key
- ./proxy.conf:/etc/nginx/conf.d/include/proxy.conf
volumes_from:
- app
networks:
- nextcloud-net