-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
126 lines (117 loc) · 3.48 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
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '3.3'
services:
sslh:
build: ./sslh
ports:
- "443:443"
container_name: sslh
environment:
- HOST_LISTEN=0.0.0.0
- PORT_LISTEN=443
- SSH_HOST_FORWARD=dockerhost
- SSH_PORT_FORWARD=${DCP_ENV_HOST_SSHD_PORT}
- SSL_HOST_FORWARD=dockerhost
- SSL_PORT_FORWARD=${DCP_ENV_TRAEFIK_HTTPS_PORT}
extra_hosts:
- "dockerhost:${DCP_ENV_HOST_IP_ADDR}"
env_file: prod.env
traefik:
image: traefik
container_name: traefik
ports:
- "80:80"
- "${DCP_ENV_TRAEFIK_HTTPS_PORT}:443"
networks:
- web
volumes:
- ${DCP_ENV_TRAEFIK_CONFIG_PATH}:/etc/traefik/traefik.toml
- ./traefik/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:traefik.${DCP_ENV_DOMAIN}"
- "traefik.basic.port=8080"
gitea:
image: gitea/gitea
container_name: gitea
ports:
- "22:22"
networks:
- web
volumes:
- gitea-volume:/data
- ${DCP_ENV_GITEA_CONFIG_PATH}:/data/gitea/conf/app.ini
env_file: prod.env
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:git.${DCP_ENV_DOMAIN}"
- "traefik.port=3000"
monitoring:
image: firehol/netdata
container_name: monitoring
ports:
- "19999:19999"
networks:
- web
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
cap_add:
- SYS_PTRACE
env_file: prod.env
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:monitoring.${DCP_ENV_DOMAIN}"
- "traefik.port=19999"
analytics:
image: matomo
container_name: analytics
links:
- matomo-database:db
networks:
- web
env_file: prod.env
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:analytics.${DCP_ENV_DOMAIN}"
- "traefik.port=80"
matomo-database:
image: mysql:5
container_name: matomo-database
volumes:
- matomo-database-volume:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DCP_ENV_MATOMO_MYSQL_PASSWD}
env_file: prod.env
selfoss:
image: jenserat/selfoss
container_name: selfoss
networks:
- web
volumes:
- /srv/selfoss:/var/www/html/data
env_file: prod.env
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:rss.${DCP_ENV_DOMAIN}"
- "traefik.basic.port=80"
backup:
build: ./backup
ports:
- "10022:22"
container_name: backup
volumes:
- ./backup/backup.sh:/etc/periodic/daily/backup:ro
- gitea-volume:/srv/backup/gitea/:ro
- keeweb-webdav-volume:/srv/backup/keeweb-webdav/:ro
- matomo-database-volume:/srv/backup/matomo-database/:ro
environment:
- DCK_LOCAL_BACKUP_REPO=/srv/backup
- DCK_REMOTE_BACKUP_REPO=${DCP_ENV_REMOTE_BACKUP_REPO}
networks:
web:
external: true
volumes:
gitea-volume:
keeweb-webdav-volume:
matomo-database-volume: