This repository has been archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (90 loc) · 2.59 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
webserver:
build:
context: ./webserver
args:
- INSTALL_XDEBUG=${INSTALL_XDEBUG}
- INSTALL_PDO_MYSQL=${INSTALL_PDO_MYSQL}
- INSTALL_MONGODB=${INSTALL_MONGODB}
- INSTALL_IMAGEMAGICK=${INSTALL_IMAGEMAGICK}
image: php:7-apache
container_name: dev_stack__webserver
volumes:
- ${DOCUMENT_ROOT}:/var/www/html
- ./webserver/php/php.ini:/usr/local/etc/php/conf.d/dev_stack.ini
- ./webserver/apache/apache2.conf:/etc/apache2/conf-available/dev_stack.conf
- ./webserver/apache/vhosts.conf:/etc/apache2/sites-available/000-default.conf
ports:
- ${HTTP_PORT}:80
links:
- mysql
- phpmyadmin
- mongo-express
- workspace
- mailcatcher
environment:
- TZ=${TIMEZONE}
mysql:
image: mysql:8
container_name: dev_stack__mysql
volumes:
- ./mysql/mysql.cnf:/etc/mysql/conf.d/dev_stack.cnf
- ./mysql/build.sql:/docker-entrypoint-initdb.d/build.sql
ports:
- ${MYSQL_PORT}:3306
environment:
- TZ=${TIMEZONE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
phpmyadmin:
build: ./phpmyadmin
image: phpmyadmin/phpmyadmin
container_name: dev_stack__phpmyadmin
volumes:
- ./phpmyadmin/config.php:/etc/phpmyadmin/config.user.inc.php
links:
- mysql
environment:
- TZ=${TIMEZONE}
- PMA_HOST=mysql
- PMA_PORT=3306
- PMA_USER=root
- PMA_PASSWORD=root
mongo:
image: mongo
container_name: dev_stack__mongo
volumes:
- ./mongo/build.js:/docker-entrypoint-initdb.d/build.js
ports:
- ${MONGO_PORT}:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
mongo-express:
image: mongo-express
container_name: dev_stack__mongo_express
restart: always
links:
- mongo
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_USERNAME}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_PASSWORD}
mailcatcher:
image: schickling/mailcatcher
container_name: dev_stack__mailcatcher
workspace:
build:
context: ./workspace
args:
- INSTALL_XDEBUG=${INSTALL_XDEBUG}
- INSTALL_PDO_MYSQL=${INSTALL_PDO_MYSQL}
- INSTALL_MONGODB=${INSTALL_MONGODB}
- INSTALL_IMAGEMAGICK=${INSTALL_IMAGEMAGICK}
image: php:7
container_name: dev_stack__workspace
command: /bin/bash -c /etc/init.d/dev_stack.sh
volumes:
- ${DOCUMENT_ROOT}:/var/www/html
environment:
- TZ=${TIMEZONE}
- COMPOSER_ALLOW_SUPERUSER=1