-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
83 lines (77 loc) · 1.63 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
version: "3"
networks:
proxy:
external: true
internal:
external: false
volumes:
nextcloud:
apps:
data:
config:
mysqldir:
services:
traefik:
image: traefik:1.4.4-alpine
command: --docker
container_name: traefik
hostname: traefik
labels:
- traefik.frontend.rule=Host:monitor.mydomain.com
- traefik.port=8080
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /path/to/traefik/traefik.toml:/traefik.toml
- /path/to/traefik/acme.json:/acme.json
networks:
- proxy
ports:
- 80:80
- 443:443
nextcloud:
image: nextcloud
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=root
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.mydomain.com
- traefik.docker.network=proxy
- traefik.port=80
networks:
- internal
- proxy
depends_on:
- mysql
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD:
restart: always
volumes:
- mysqldir:/var/lib/mysql
networks:
- internal
labels:
- traefik.enable=false
adminer:
image: adminer:4.3.1-standalone
labels:
- traefik.backend=adminer
- traefik.frontend.rule=Host:db-admin.mydomain.com
- traefik.docker.network=proxy
- traefik.port=8080
networks:
- internal
- proxy
depends_on:
- mysql