forked from libresh/compose-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (76 loc) · 1.39 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
version: '2'
networks:
lb_web:
external: true
back:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.${SUBNET}.0/24
services:
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
links:
- app
volumes_from:
- app
environment:
- VIRTUAL_HOST
networks:
- back
- lb_web
app:
build: .
links:
- db
volumes:
- ./data/apps:/var/www/html/apps
- ./data/custom_apps:/var/www/html/custom_apps
- ./data/config:/var/www/html/config
- ./data/data:/var/www/html/data
environment:
- MAIL_HOST
- MAIL_FROM
- MAIL_PASS
- MAIL_PORT
- URL
- MAIL_DOMAIN
- SMTP_NAME
- MYSQL_DATABASE=nextcloud
- MYSQL_HOST=db
- MYSQL_USER=root
- MYSQL_PASSWORD
networks:
- back
db:
image: mysql:5.7
volumes:
- ./mysql/runtime:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
networks:
- back
redis:
image: redis
networks:
- back
cron:
image: nextcloud:15-fpm
links:
- db
volumes_from:
- app
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do
/usr/local/bin/php /var/www/html/cron.php
sleep 900
done
EOF'
networks:
- back