-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·42 lines (39 loc) · 1.19 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
[PROJECT_NAME]:
image: [IMAGE_NAME]
ports:
- 80
environment:
APPLICATION_ENV: development
HISTFILE: /root/.bash_history/.bash_history
command: sh /init.sh
links:
- [PROJECT_NAME]_mysql
- [PROJECT_NAME]_gearmand
- [PROJECT_NAME]_memcached
volumes:
- ./config-files/pinfo.php:/pinfo.php
- ./config-files/init.sh:/init.sh
- ./config-files/nginx.conf:/etc/nginx/nginx.conf
- ./config-files/vhost.conf:/etc/nginx/conf.d/vhost.conf
- ./config-files/www.conf:/etc/php-fpm.d/www.conf
- ./config-files/php-development.ini:/etc/php.d/php-development.ini
- ./config-files/xdebug-profiler.ini:/etc/php.d/xdebug-profiler.ini
- ./config-files/xdebug-remote.ini:/etc/php.d/xdebug-remote.ini
- ./../:/data/project
- ./../log/nginx:/var/log/nginx
- ./../log/php-fpm:/var/log/php-fpm
- /root/.bash_history
[PROJECT_NAME]_memcached:
image: memcached
[PROJECT_NAME]_gearmand:
image: pataquets/gearmand
[PROJECT_NAME]_mysql:
image: mysql
ports:
- 3306
environment:
MYSQL_DATABASE: "[PROJECT_DBNAME]"
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- ./config-files/my.cnf:/etc/mysql/conf.d/my.cnf