This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.67 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
version: "3.8"
services:
hestiacp:
image: "jhmaverick/hestiacp:latest"
container_name: "hestiacp-server"
restart: "unless-stopped"
hostname: "${HSTC_HOSTNAME:?Hostname not defined}"
privileged: true
depends_on:
- mariadb
environment:
MAIL_ADMIN: "${MAIL_ADMIN:-}"
AUTOSTART_DISABLED: "${AUTOSTART_DISABLED:-}"
labels:
- "Hestia Control Panel"
ports:
- "80:80"
- "443:443"
- "8083:8083"
# Proxy TCP to MariaDB
- "3306:3306"
# DNS
- "127.0.0.1:53:53/udp"
- "127.0.0.1:53:53/tcp"
- "127.0.0.1:953:953/tcp"
# FTP
- "20:20"
- "21:21"
- "12000-12100:12000-12100"
# Container SSH
- "22222:22222"
# SMTP and SMTP over TLS
- "25:25"
- "465:465"
- "587:587"
- "2525:2525"
# IMAP and IMAP over SSL
- "143:143"
- "993:993"
# POP3 and POP3 over SSL
- "110:110"
- "995:995"
volumes:
- /data/backup:/backup
- /data/conf:/conf
- /data/home:/home
- mariadb-logs:/var/log/mysql
networks:
- default
mariadb:
image: mariadb:10.6
container_name: "hestiacp-mariadb"
restart: "unless-stopped"
environment:
MARIADB_ROOT_PASSWORD: "root"
MARIADB_ROOT_HOST: "%"
MARIADB_INITDB_SKIP_TZINFO: 1
volumes:
- /data/mariadb:/var/lib/mysql
- mariadb-logs:/var/log/mysql
command: [ "mariadbd", "--max-connections=1000", "--max-user-connections=150", "--max-allowed-packet=128M" ]
networks:
- default
volumes:
mariadb-logs:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.50.0.0/16