-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (58 loc) · 1.64 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
version: '2'
services:
mysql:
container_name: "mariadb${DOCKER_MARIADB_VERSION}"
restart: always
image: "belazor/dbtech-devel:mariadb-${DOCKER_MARIADB_VERSION}"
environment:
MYSQL_ROOT_PASSWORD: 'revanza' # TODO: Change this
MYSQL_USER: 'root'
MYSQL_PASS: 'revanza'
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
expose:
# Opens port 3306 on the container
- '3306'
# Where our data will be persisted
volumes:
- /System/Volumes/Data/Users/Shared/www/mysql:/var/lib/mysql
networks:
- app_mysql_net
app:
depends_on:
- mysql
image: "belazor/dbtech-devel:php-apache-${DOCKER_PHP_VERSION}"
container_name: "php${DOCKER_PHP_VERSION}"
ports:
- "${DOCKER_PHP_PORT}:80"
- "443:443"
expose:
# Opens ports 80 and 443 on the container
- '80'
- '443'
volumes:
# - /System/Volumes/Data/Users/Shared/www/public_html:/var/www/html
# - /System/Volumes/Data/Users/Shared/www/git:/var/www/html
- "nfsmount:/var/www/html"
- "nfsmount2:/System/Volumes/Data/Users/Shared/www/git"
links:
- mysql
networks:
- app_mysql_net
volumes:
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":/System/Volumes/Data/Users/Shared/www/public_html"
nfsmount2:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":/System/Volumes/Data/Users/Shared/www/git"
networks:
app_mysql_net:
driver: bridge