-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Console, Symfony app/console and deployment environment
phpcli:
build: docker/php-cli-5.6
restart: always
ports:
- "8080:8080"
volumes:
- .:/var/www/html/organist
- ./docker/php-fpm-5.6/php.ini:/usr/local/etc/php/php.ini
tty: true
environment:
npm_package_config_port: 8080
npm_package_config_dbhost: mysql
npm_package_config_dbname: live
npm_package_config_dbuser: root
npm_package_config_dbpassword: organist
npm_package_config_table: CommandLog
npm_package_config_idField: id
npm_package_config_commandField: command
npm_package_config_logField: log
npm_package_config_dateField: datetimeend
links:
- mysql:mysql
phpfpm:
build: docker/php-fpm-5.6
restart: always
volumes:
- ./docker/php-fpm-5.6/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./docker/php-fpm-5.6/php.ini:/usr/local/etc/php/php.ini
- ./docker/log/php-fpm:/var/log/php-fpm
volumes_from:
- phpcli
ports:
- 9000:9000
links:
- mysql:mysql
nginx:
image: nginx
restart: always
ports:
- "80:80"
links:
- phpfpm:phpfpm
- phpcli:phpcli
volumes:
- ./docker/nginx/vhost.conf:/etc/nginx/conf.d/default.conf
- ./docker/log/nginx:/var/log/nginx
volumes_from:
- phpcli
mysql:
image: mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: organist
MYSQL_USER: organist
MYSQL_PASSWORD: organist
MYSQL_DATABASE: organist
volumes:
- ./docker/mysql/databases:/var/lib/mysql
- ./docker/log/mysql:/var/log/mysql