-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·99 lines (91 loc) · 2.09 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"
networks:
proxy:
external: true
internal:
external: false
volumes:
nextcloud:
apps:
data:
config:
mysqldir:
bw-data:
services:
traefik:
image: traefik
command: --docker
container_name: traefik
hostname: traefik
environment:
- CF_API_EMAIL=${CLOUDFLARE_API_EMAIL}
- CF_API_KEY=${CLOUDFLARE_API_KEY}
labels:
- traefik.frontend.rule=Host:${TRAEFIK_HOST}
- traefik.port=8080
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/murmrs/traefik/traefik.toml:/traefik.toml
- /home/murmrs/traefik/acme.json:/acme.json
networks:
- proxy
ports:
- 80:80
- 443:443
nextcloud:
image: nextcloud
links:
- mysql
restart: always
volumes:
- nextcloud:/var/www/html
- apps:/var/www/html/custom_apps
- data:/var/www/html/data
- config:/var/www/html/config
labels:
- traefik.backend=nextcloud
- traefik.frontend.rule=Host:${NEXTCLOUD_HOST}
- traefik.docker.network=proxy
- traefik.port=80
networks:
- internal
- proxy
depends_on:
- mysql
mysql:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
restart: always
volumes:
- mysqldir:/var/lib/mysql
networks:
- internal
labels:
- traefik.enable=false
bitwarden:
image: mprasil/bitwarden:latest
volumes:
- bw-data:/data/
labels:
- traefik.docker.network=proxy
- traefik.enable=true
- traefik.web.frontend.rule=Host:${BITWARDEN_HOST}
- traefik.web.port=80
- traefik.hub.frontend.rule=Host:${BITWARDEN_HOST};Path:/notifications/hub
- traefik.hub.port=3012
networks:
- proxy
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant
volumes:
- haconfig:/config
- /etc/localtime:/etc/localtime:ro
restart: always
networks:
- internal