-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (43 loc) · 972 Bytes
/
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
version: "3.2"
services:
apache:
restart: "no"
build:
context: ./web
depends_on:
- mysql
networks:
- backend
- frontend
ports:
- "80:80"
- "443:443"
volumes:
- type: bind
source: ${DOCROOT}
target: /var/www/html/
consistency: cached
#- ${DOCROOT}:/var/www/html/:cached
#- localwebdev-docroot-sync:/var/www/html:nocopy # nocopy is important
mysql:
restart: "no"
image: mariadb:${MYSQL_VERSION:-latest}
command: --default-authentication-plugin=mysql_native_password
ports:
- "3307:3306"
volumes:
- ./mysql/:/var/lib/mysql:delegated
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: "root"
#MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
#container_name: "${MYSQLDB_NAME}"
volumes:
localwebdev-docroot-sync:
external: true
localwebdev-mysql-sync:
external: true
networks:
backend:
frontend: