-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 907 Bytes
/
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
version: "2"
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: '%'
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:
- /your/path/to/whmcs:/var/www/whmcs
networks:
whmcs:
driver: bridge
ipam:
config:
- subnet: 172.18.18.0/29
gateway: 172.18.18.1