-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 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
version: "3.7"
services:
webserver:
build:
context: ./bin/webserver
image: techwithus/openlitespeed
container_name: "openlitespeed"
restart: "always"
ports:
- "${HOST_MACHINE_UNSECURE_HOST_PORT}:80"
- "${HOST_MACHINE_SECURE_HOST_PORT}:443"
working_dir: /var/www/vhosts/localhost/html/
links:
- mariadb
volumes:
- ${PHP_INI-./config/php/php.ini}:/usr/local/etc/php/php.ini
- ${OPENLITESPEED_CONFIG-./config/openlitespeed-config/httpd_config.conf}:/usr/local/lsws/conf/httpd_config.conf
- ${OPENLITESPEED_VHOST-./config/openlitespeed-vhosts/vhconf.conf}:/usr/local/lsws/conf/vhosts/Example/vhconf.conf
- ${DOCKER_CONFIG-./config/openlitespeed-docker/docker.conf}:/usr/local/lsws/conf/templates/docker.conf
- ${LOG_DIR-./logs/openlitespeed}:/usr/local/lsws/logs/
mariadb:
build:
context: ./bin/mariadb
image: techwithus/mariadb
container_name: "mariadb"
restart: "always"
ports:
- "${HOST_MACHINE_MYSQL_PORT}:3306"
volumes:
- ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
- ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
environment:
TZ: ${TimeZone}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
phpmyadmin:
build:
context: ./bin/phpmyadmin
image: techwithus/phpmyadmin
container_name: "phpmyadmin"
links:
- mariadb
environment:
PMA_HOST: mariadb
PMA_PORT: ${HOST_MACHINE_MYSQL_PORT}
ports:
- "${PHPMYADMIN_PORT}:80"
volumes:
- /sessions