-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
113 lines (103 loc) · 3.86 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3'
services:
proxy:
image: jwilder/nginx-proxy
container_name: proxy
restart: unless-stopped
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:rw
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- ./uploadsize.conf:/etc/nginx/conf.d/uploadsize.conf:ro
ports:
- "80:80"
- "443:443"
networks:
- "default"
- "proxy-tier"
proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
restart: unless-stopped
environment:
- NGINX_PROXY_CONTAINER=proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- "proxy"
depends_on:
- "proxy"
networks:
- "default"
- "proxy-tier"
portainer:
image: portainer/portainer
container_name: portainer
restart: always
environment:
- VIRTUAL_HOST= #docker.example.com
- LETSENCRYPT_HOST= #docker.example.com
- LETSENCRYPT_EMAIL= #[email protected]
volumes:
- ./portainer/:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000"
nextcloud:
image: nextcloud:apache
container_name: nextcloud
restart: unless-stopped
environment:
- VIRTUAL_HOST= #drive.example.com
- LETSENCRYPT_HOST= #drive.example.com
- LETSENCRYPT_EMAIL= #[email protected]
- PGID=999
- PUID=1000
volumes:
- ./nextcloud:/var/www/html
ports:
- "666:80"
networks:
- proxy-tier
- default
depends_on:
- "db"
db:
image: mariadb:10.5
container_name: db
restart: always
environment:
MYSQL_ROOT_PASSWORD: #Passphrase00
MYSQL_PASSWORD: #Passphrase01
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
volumes:
- ./db:/var/lib/mysql
ports:
- "3306:3306"
# freshrss:
# image: linuxserver/freshrss
# container_name: freshrss
# restart: unless-stopped
# environment:
# - VIRTUAL_HOST=feed.DOMAIN.TLD - feed.example.com
# - LETSENCRYPT_HOST=feed.DOMAIN.TLD - feed.example.com
# - PGID=1001
# - PUID=1000
# volumes:
# - ./freshrss:/config
# ports:
# - "667:80"
# networks:
# - proxy-tier
# - default
volumes:
certs:
vhost.d:
html:
networks:
proxy-tier: