-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (112 loc) · 2.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
122 lines (112 loc) · 2.6 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
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
114
115
116
117
118
119
120
121
version: '2'
volumes:
nextcloud:
conf.d:
vhost.d:
html:
networks:
proxy:
services:
# Proxy
nginx:
image: nginx:alpine
container_name: nginx
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./certs:/etc/nginx/certs:ro
- conf.d:/etc/nginx/conf.d
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./configs/uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf:ro
- ./configs/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- proxy
dockergen:
image: jwilder/docker-gen
container_name: nginx-gen
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
networks:
- proxy
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./templates:/etc/docker-gen/templates/
depends_on:
- nginx
letsencrypt-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-letsencrypt
restart: always
volumes:
- ./certs:/etc/nginx/certs
- conf.d:/etc/nginx/conf.d
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy
depends_on:
- dockergen
environment:
- NGINX_PROXY_CONTAINER=nginx
- NGINX_DOCKER_GEN_CONTAINER=dockergen
# Nextcloud
web:
image: nginx
container_name: nextcloud_web
restart: always
volumes:
- nextcloud:/var/www/html:ro
- ./configs/full-nextcloud.conf:/etc/nginx/nginx.conf
depends_on:
- nextcloud
networks:
- proxy
env_file:
- env/nextcloud.env
db:
image: mariadb
container_name: nextcloud-db
restart: always
volumes:
- /mnt/other/mysql:/var/lib/mysql
env_file:
- env/db.env
networks:
- proxy
nextcloud:
image: nextcloud:fpm
container_name: nextcloud
restart: always
volumes:
- nextcloud:/var/www/html
- /mnt/other/nextcloud:/var/www/html/data
environment:
- MYSQL_HOST=db
env_file:
- env/db.env
depends_on:
- db
networks:
- proxy
# Emby
emby:
image: emby/embyserver:latest
container_name: emby
restart: always
volumes:
- /mnt/movies1:/mnt/movies1:ro
- /mnt/movies2:/mnt/movies2:ro
- /mnt/other/embyconfig:/config
- /mnt/other:/mnt/other:ro
networks:
- proxy
env_file:
- env/emby.env
environment:
- VIRTUAL_PORT=8096