-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-local.yml
60 lines (56 loc) · 1.14 KB
/
docker-compose-local.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
version: "3.7"
services:
mysql:
image: mysql/mysql-server:5.7
container_name: "MYSQL"
hostname: mysql
restart: always
networks:
whmcs:
ipv4_address: 172.18.18.2
environment:
MYSQL_ROOT_PASSWORD: "mysqrootpass"
MYSQL_ROOT_HOST: '%'
SMTP_HOST: 172.18.18.4
SMTP_PORT: 1025
ports:
- 3306:3306
whmcs:
image: fauzie/docker-whmcs:latest
container_name: "WHMCS"
hostname: whmcs
networks:
whmcs:
ipv4_address: 172.18.18.3
restart: always
depends_on:
- mysql
environment:
WORKER_PROCESSES: 4
VIRTUAL_HOST: whmcs.test
APP_PASSWORD: userapppassword
WHMCS_SERVER_IP: 172.18.18.1
HTTPS: "on"
ports:
- 80:80
- 2222:2222
volumes:
- ./whmcs:/var/www/whmcs
mailhog:
image: mailhog/mailhog
container_name: "MAILHOG"
hostname: mailhog
restart: always
networks:
whmcs:
ipv4_address: 172.18.18.4
ports:
- 8025:8025
- 1025:1025
networks:
whmcs:
driver: bridge
ipam:
config:
- subnet: 172.18.18.0/29
gateway: 172.18.18.1