Skip to content

Commit 16fd06a

Browse files
committed
(+) added ext yaml to php container and added nodejs to docker-compose.yml
1 parent f0329c9 commit 16fd06a

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@
1818
/db/data/*
1919
!/db/mysql/.gitkeep
2020
/db/mysql/*
21+
22+
# frontend sourses
23+
/frontend
24+
25+
# ide config
26+
/.vscode
27+
/.idea

docker-compose.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,14 @@ services:
6060
volumes:
6161
- ./db/initdb/:/docker-entrypoint-initdb.d/
6262
- ./db/mysql:/var/lib/mysql
63-
- ./logs:/var/log/mysql/
63+
- ./logs:/var/log/mysql/
64+
node:
65+
image: node:14.18.3-alpine3.15
66+
container_name: node
67+
restart: always
68+
working_dir: /app
69+
stdin_open: true
70+
ports:
71+
- 3000:3000
72+
volumes:
73+
- ./frontend/:/app/

images/php/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ RUN apt update && apt install -y \
1818
libxpm-dev \
1919
libwebp-dev \
2020
libvpx-dev \
21+
libyaml-dev \
2122
libzip-dev \
2223
fish \
2324
&& pecl install xdebug \
25+
&& pecl install yaml \
2426
&& pecl install mcrypt-1.0.3 \
2527
&& docker-php-ext-enable xdebug \
28+
&& docker-php-ext-enable yaml \
2629
&& docker-php-ext-enable mcrypt
2730

2831
# Configure and install PHP extentions

images/php/xdebug.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
; Put here your xdebug config

mp.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ echo 'server {
5656

5757
cd ../
5858
docker-compose up -d
59-
docker exec -i -t php-dev-env_web_1 nginx -s reload
59+
docker exec -i -t php-dev-env_nginx_1 nginx -s reload
6060
echo " "
6161
echo 'To add domain to hosts file you must use root privileges:'
6262
sudo -i << EOF
@@ -67,4 +67,4 @@ EOF
6767
echo " "
6868
echo 'To access the project enter '$projectname'.local in browser.'
6969
echo 'Now you must go to create DB and configure project environment.'
70-
exit
70+
exit

0 commit comments

Comments
 (0)