Skip to content

Commit 9e0edf2

Browse files
author
José Fernando Cordova
committed
configurations
1 parent 9a31699 commit 9e0edf2

13 files changed

+107
-36
lines changed

.docker/.gitignore

100644100755
File mode changed.

.docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ COPY .docker/docker-php-entrypoint /usr/local/bin/
4444

4545
# www-data:
4646
RUN chown -R www-data:www-data ./ && a2enmod rewrite
47+
RUN chown -R www-data:www-data storage
4748

4849
RUN chmod 755 /usr/local/bin/docker-php-entrypoint
49-
RUN chmod 777 -R storage
5050

5151
# mode-root:
5252
USER root
53+
#RUN chmod 777 -R storage
54+
5355

5456
HEALTHCHECK --interval=50s \
5557
--timeout=600s \

.docker/docker-php-entrypoint

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Xdebug ----------------------------------------------------
88

99
if [ "${XDEBUG_MODE}" == 1 ] ; then
10-
mkdir /docker-laravel-api-dev/.docker/local-mysql-datadir
10+
mkdir -p /docker-laravel-api-dev/.docker/local-mysql-datadir
1111
echo 'Installs require-dev dependencies'
1212
composer install --no-scripts
1313
echo 'Installing XDebug...'
@@ -30,6 +30,7 @@
3030
echo 'Running Migrations...'
3131
cd /docker-laravel-api-dev
3232
php artisan key:generate
33+
php artisan jwt:secret -f
3334
php artisan migrate
3435
echo 'Migrations done!'
3536

.docker/xdebug.ini.template

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

.travis.yml

100644100755
File mode changed.

LICENSE.md

100644100755
File mode changed.
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"info": {
3+
"name": "apiLaravelDocker",
4+
"_postman_id": "7d5f25d3-239f-4595-aa94-94380953b7b8",
5+
"description": "",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "http://127.0.0.1/api/auth/signup",
11+
"request": {
12+
"method": "POST",
13+
"header": [],
14+
"body": {
15+
"mode": "formdata",
16+
"formdata": [
17+
{
18+
"key": "name",
19+
"value": "José Fernando Cordova ",
20+
"description": "",
21+
"type": "text"
22+
},
23+
{
24+
"key": "email",
25+
"value": "jfernancordova@gmail.com",
26+
"description": "",
27+
"type": "text"
28+
},
29+
{
30+
"key": "password",
31+
"value": "apiLaravelDocker",
32+
"description": "",
33+
"type": "text"
34+
}
35+
]
36+
},
37+
"url": {
38+
"raw": "http://127.0.0.1/api/auth/signup",
39+
"protocol": "http",
40+
"host": [
41+
"127",
42+
"0",
43+
"0",
44+
"1"
45+
],
46+
"path": [
47+
"api",
48+
"auth",
49+
"signup"
50+
]
51+
},
52+
"description": ""
53+
},
54+
"response": []
55+
},
56+
{
57+
"name": "http://127.0.0.1/api/auth/login",
58+
"request": {
59+
"method": "POST",
60+
"header": [],
61+
"body": {
62+
"mode": "formdata",
63+
"formdata": [
64+
{
65+
"key": "email",
66+
"value": "jfernancordova3@gmail.com",
67+
"description": "",
68+
"type": "text"
69+
},
70+
{
71+
"key": "password",
72+
"value": "apiLaravelDocker",
73+
"description": "",
74+
"type": "text"
75+
}
76+
]
77+
},
78+
"url": {
79+
"raw": "http://127.0.0.1/api/auth/login",
80+
"protocol": "http",
81+
"host": [
82+
"127",
83+
"0",
84+
"0",
85+
"1"
86+
],
87+
"path": [
88+
"api",
89+
"auth",
90+
"login"
91+
]
92+
},
93+
"description": ""
94+
},
95+
"response": []
96+
}
97+
]
98+
}

composer.lock

Lines changed: 0 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.4'
22
services:
33
php:
4-
image: jfernancordova/docker-laravel-api-dev:1.0.0
4+
image: jfernancordova/docker-laravel-api-dev:1.0.1
55
environment:
66
APP_NAME: docker-laravel-api-dev
77
APP_ENV: local

0 commit comments

Comments
 (0)