-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (91 loc) · 2.55 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
version: '3'
services:
proxy:
image: jwilder/nginx-proxy:alpine
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
container_name: nextcloud-proxy
networks:
- nextcloud_network
ports:
- 80:80
- 443:443
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- ./proxy/certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: unless-stopped
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nextcloud-letsencrypt
depends_on:
- proxy
networks:
- nextcloud_network
volumes:
- ./proxy/certs:/etc/nginx/certs:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
db:
image: mariadb:latest
container_name: nextcloud-mariadb
ports: ["3306:3306"]
networks:
- nextcloud_network
volumes:
- ./var/lib/mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
MYSQL_ROOT_PASSWORD: yoghurtpassword
MYSQL_PASSWORD: rarapassword
MYSQL_DATABASE: nextcloud-lite
MYSQL_USER: nextcloud
restart: unless-stopped
app:
image: nextcloud:latest
container_name: nextcloud-app
networks:
- nextcloud_network
depends_on:
- letsencrypt
- proxy
- db
- mailerthing
volumes:
- ./var/www/html:/var/www/html
- ./app/config:/var/www/html/config
- ./app/custom_apps:/var/www/html/custom_apps
- ./app/data:/var/www/html/data
- ./app/themes:/var/www/html/themes
- /etc/localtime:/etc/localtime:ro
- /mnt/volume_one/mash:/mnt/volume_one/mash
environment:
- VIRTUAL_HOST=files.foo.co
- LETSENCRYPT_HOST=files.foo.co
- LETSENCRYPT_EMAIL=guild@email.rara
- MYSQL_DATABASE=nextcloud-lite
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=rarapassword
- MYSQL_HOST=db
- NEXTCLOUD_DATA_DIR=/mnt/volume_one/mash
- NEXTCLOUD_ADMIN_USER=datamaster
- NEXTCLOUD_ADMIN_PASSWORD=fabulouspassword
- NEXTCLOUD_TRUSTED_DOMAINS=files.foo.co
restart: unless-stopped
mailerthing:
image: namshi/smtp
networks:
- nextcloud_network
ports:
- "25:25"
restart: always
volumes:
nextcloud:
networks:
nextcloud_network: