Skip to content

Commit 78014da

Browse files
committed
Update docker-compose files
1 parent 5d54674 commit 78014da

File tree

2 files changed

+93
-58
lines changed

2 files changed

+93
-58
lines changed

docker-compose-xdebug.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: '2'
2+
services:
3+
app:
4+
image: "thecodingmachine/php:7.2-v2-apache"
5+
ports:
6+
- "80:80"
7+
volumes:
8+
- "nfsmount:/var/www/html"
9+
- "nfsmount2:/System/Volumes/Data/Users/Shared/www/git"
10+
environment:
11+
PHP_EXTENSION_OPCACHE: 0
12+
13+
# Will set the extension XDebug
14+
PHP_EXTENSION_XDEBUG: 1
15+
16+
# This XDebug configuration is only for CLI debug
17+
PHP_INI_XDEBUG__REMOTE_PORT: 10000
18+
19+
PHP_IDE_CONFIG: "serverName=docker_xf2"
20+
XDEBUG_CONFIG: "rmote_port=10000 remote_autostart=1"
21+
22+
volumes:
23+
nfsmount:
24+
driver: local
25+
driver_opts:
26+
type: nfs
27+
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
28+
device: ":/System/Volumes/Data/Users/Shared/www/public_html"
29+
nfsmount2:
30+
driver: local
31+
driver_opts:
32+
type: nfs
33+
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
34+
device: ":/System/Volumes/Data/Users/Shared/www/git"

docker-compose.yml

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,61 @@
1-
version: "3.2"
1+
version: '2'
22
services:
3-
php53:
4-
build: './php-apache-53/'
5-
networks:
6-
- backend
7-
ports:
8-
- "8053:80"
9-
volumes:
10-
- /www/public_html/:/var/www/html/
11-
php54:
12-
build: './php-apache-54/'
13-
networks:
14-
- backend
15-
ports:
16-
- "8054:80"
17-
volumes:
18-
- /www/public_html/:/var/www/html/
19-
php55:
20-
build: './php-apache-55/'
21-
networks:
22-
- backend
23-
ports:
24-
- "8055:80"
25-
volumes:
26-
- /www/public_html/:/var/www/html/
27-
php56:
28-
build: './php-apache-56/'
29-
networks:
30-
- backend
31-
ports:
32-
- "8056:80"
33-
volumes:
34-
- /www/public_html/:/var/www/html/
35-
php70:
36-
build: './php-apache-70/'
37-
networks:
38-
- backend
39-
ports:
40-
- "8070:80"
41-
volumes:
42-
- /www/public_html/:/var/www/html/
43-
php71:
44-
build: './php-apache-71/'
45-
networks:
46-
- backend
47-
ports:
48-
- "8071:80"
49-
volumes:
50-
- /www/public_html/:/var/www/html/
51-
php72:
52-
build: './php-apache-72/'
53-
networks:
54-
- backend
55-
ports:
56-
- "8072:80"
57-
volumes:
58-
- /www/public_html/:/var/www/html/
3+
mysql:
4+
container_name: "mariadb${DOCKER_MARIADB_VERSION}"
5+
restart: always
6+
image: "belazor/dbtech-devel:mariadb-${DOCKER_MARIADB_VERSION}"
7+
environment:
8+
MYSQL_ROOT_PASSWORD: 'revanza' # TODO: Change this
9+
MYSQL_USER: 'root'
10+
MYSQL_PASS: 'revanza'
11+
ports:
12+
# <Port exposed> : < MySQL Port running inside container>
13+
- '3306:3306'
14+
expose:
15+
# Opens port 3306 on the container
16+
- '3306'
17+
# Where our data will be persisted
18+
volumes:
19+
- /System/Volumes/Data/Users/Shared/www/mysql:/var/lib/mysql
20+
networks:
21+
- app_mysql_net
22+
23+
app:
24+
depends_on:
25+
- mysql
26+
image: "belazor/dbtech-devel:php-apache-${DOCKER_PHP_VERSION}"
27+
container_name: "php${DOCKER_PHP_VERSION}"
28+
ports:
29+
- "${DOCKER_PHP_PORT}:80"
30+
- "443:443"
31+
expose:
32+
# Opens ports 80 and 443 on the container
33+
- '80'
34+
- '443'
35+
volumes:
36+
# - /System/Volumes/Data/Users/Shared/www/public_html:/var/www/html
37+
# - /System/Volumes/Data/Users/Shared/www/git:/var/www/html
38+
- "nfsmount:/var/www/html"
39+
- "nfsmount2:/System/Volumes/Data/Users/Shared/www/git"
40+
links:
41+
- mysql
42+
networks:
43+
- app_mysql_net
44+
45+
volumes:
46+
nfsmount:
47+
driver: local
48+
driver_opts:
49+
type: nfs
50+
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
51+
device: ":/System/Volumes/Data/Users/Shared/www/public_html"
52+
nfsmount2:
53+
driver: local
54+
driver_opts:
55+
type: nfs
56+
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
57+
device: ":/System/Volumes/Data/Users/Shared/www/git"
58+
5959
networks:
60-
backend:
60+
app_mysql_net:
61+
driver: bridge

0 commit comments

Comments
 (0)