-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·48 lines (47 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
executable file
·48 lines (47 loc) · 1.18 KB
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
version: "3"
services:
webserver:
build:
context: ./bin/webserver
container_name: '5.6.x-webserver-api'
restart: 'always'
ports:
- "8003:80"
- "4433:443"
links:
- mysql
volumes:
- ${DOCUMENT_ROOT-./www}:/var/www/html
- ${PHP_INI-./config/php/php.ini}:/usr/local/etc/php/php.ini
- ${VHOSTS_DIR-./config/vhosts}:/etc/apache2/sites-enabled
- ${LOG_DIR-./logs/apache2}:/var/log/apache2
mysql:
build: ./bin/mysql
container_name: '5.7-mysql-api'
restart: 'always'
# ports:
# - "3306:3306"
volumes:
- ${MYSQL_DATA_DIR-./data/mysql}:/var/lib/mysql
- ${MYSQL_LOG_DIR-./logs/mysql}:/var/log/mysql
- ./config/mysql/lowmem.cnf:/etc/mysql/conf.d/mysqld.cnf
- ./data/sqldump:/sqldump/
environment:
MYSQL_ROOT_PASSWORD: tiger
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: 'sc-phpmyadmin'
# links:
# - mysql
# environment:
# PMA_HOST: mysql
# PMA_PORT: 3306
# ports:
# - '8080:80'
# volumes:
# - /sessions
# redis:
# container_name: 'sc-redis'
# image: redis:latest
# ports:
# - "6379:6379"