File tree 5 files changed +5311
-10
lines changed
5 files changed +5311
-10
lines changed Original file line number Diff line number Diff line change 4
4
"dockerComposeFile" : [" docker-compose.yml" ],
5
5
"workspaceFolder" : " /workspace" ,
6
6
"service" : " app" ,
7
+ "shutdownAction" : " stopCompose" ,
7
8
"extensions" : [
8
9
" editorconfig.editorconfig"
9
10
],
10
11
"settings" : {
11
12
"terminal.integrated.shell.linux" : " /bin/bash"
12
13
},
13
14
// Use 'forwardPorts' to make a list of ports inside the container available locally.
14
- "forwardPorts" : [],
15
+ "forwardPorts" : [80 , 8000 ],
15
16
16
17
// Use 'postCreateCommand' to run commands after the container is created.
17
- "postCreateCommand" : " cp .env.example .env && composer install && yarn install && yarn run development" ,
18
-
19
- // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
20
- "remoteUser" : " vscode"
21
- }
18
+ "postCreateCommand" : " cp .env.example .env && composer install && php artisan key:generate && yarn install && yarn run development" ,
19
+ "portsAttributes" : {
20
+ "80" : {
21
+ "label" : " HTTP"
22
+ }
23
+ },
24
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ services:
12
12
PHP_EXTENSION_XDEBUG : 1
13
13
PHP_EXTENSION_PGSQL : 1
14
14
PHP_EXTENSION_PDO_PGSQL : 1
15
- APACHE_DOCUMENT_ROOT : public/
15
+ APACHE_DOCUMENT_ROOT : /workspace/public
16
16
db :
17
17
image : postgres:13
18
18
restart : unless-stopped
@@ -29,4 +29,4 @@ services:
29
29
mailhog :
30
30
image : mailhog/mailhog
31
31
ports :
32
- - 8025:8025
32
+ - 8025:8025
Original file line number Diff line number Diff line change 1
1
ARG PHP_EXTENSIONS="mysqli pgsql pdo_mysql pdo_pgsql"
2
2
3
3
FROM thecodingmachine/php:8.0-v4-apache-node12
4
- WORKDIR /var/www/html
5
- COPY --chown=docker:docker . /var/www/html
4
+ WORKDIR /workspace
Original file line number Diff line number Diff line change @@ -13,3 +13,6 @@ npm-debug.log
13
13
yarn-error.log
14
14
/.idea
15
15
/.vscode
16
+ public /css
17
+ public /js
18
+ public /mix-manifest.json
You can’t perform that action at this time.
0 commit comments