-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 958 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (51 loc) · 958 Bytes
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
version: "3.2"
services:
php:
build:
context: './php/'
args:
PHP_VERSION: ${PHP_VERSION}
networks:
- backend
- bridge
volumes:
- ${PROJECT_ROOT}/:/var/www/html/
container_name: php-development
environment:
- APPMODE=kevinlocal
apache:
build:
context: './apache/'
args:
APACHE_VERSION: ${APACHE_VERSION}
depends_on:
- php
networks:
- frontend
- backend
- bridge
ports:
- "80:80"
volumes:
- ${PROJECT_ROOT}/:/var/www/html/
container_name: apache-development
environment:
- APPMODE=kevinlocal
mysql:
image: mysql:5.7.27
command: mysqld --sql_mode=""
ports:
- 3306:3306
networks:
- backend
- bridge
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ${PROJECT_ROOT}/mysql:/var/lib/mysql
networks:
frontend:
backend:
bridge:
volumes:
data: