-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5nextcloud.yml
65 lines (60 loc) · 1.3 KB
/
5nextcloud.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
version: '3'
networks:
samba:
external:
name: 4samba_default
volumes:
nextcloud:
external: true
nextcloudDb:
external: true
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- nextcloudDb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
## depends_on:
# - db-setup
# db-setup:
# image: alpine:latest
# command: >
# ash -c "apk add docker &&
# docker volume create nextcloudDb"
app:
image: "bob5ec/nextcloud:${ENV}"
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
- /data:/data
- /data/nextcloud:/var/www/html/data
networks:
- default
- samba
external_links:
- samba
restart: always
depends_on:
- db
- config
config:
image: "bob5ec/nextcloud:${ENV}"
volumes:
- ./5nextcloud/config:/config
- ./5nextcloud/secrets:/secrets
- nextcloud:/var/www/html
- /data:/data
- /data/nextcloud:/var/www/html/data
depends_on:
- db
entrypoint: ["/bin/bash"]
command: ["/config/setup"]