Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit ff5682a

Browse files
committed
First base commit
1 parent 7d9448d commit ff5682a

File tree

91 files changed

+13226
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+13226
-25
lines changed

Diff for: .gitignore

-23
Original file line numberDiff line numberDiff line change
@@ -1,23 +0,0 @@
1-
/vendor/
2-
node_modules/
3-
npm-debug.log
4-
yarn-error.log
5-
6-
# Laravel 4 specific
7-
bootstrap/compiled.php
8-
app/storage/
9-
10-
# Laravel 5 & Lumen specific
11-
public/storage
12-
public/hot
13-
14-
# Laravel 5 & Lumen specific with changed public path
15-
public_html/storage
16-
public_html/hot
17-
18-
storage/*.key
19-
.env
20-
Homestead.yaml
21-
Homestead.json
22-
/.vagrant
23-
.phpunit.result.cache

Diff for: .idea/.gitignore

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/laravel-docker-standalone.iml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM bitnami/laravel:10.3.3-debian-12-r5
2+
3+
COPY scripts/liblaravel.sh /opt/bitnami/scripts
4+
5+
WORKDIR /app
6+
ENTRYPOINT [ "/opt/bitnami/scripts/laravel/entrypoint.sh" ]
7+
CMD [ "/opt/bitnami/scripts/laravel/run.sh" ]

Diff for: LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 reyesoft
3+
Copyright (c) 2024 Reyesoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Diff for: README.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,54 @@
1-
# laravel-docker-standalone
1+
# laravel-docker-standalone
2+
3+
## Local workspace
4+
5+
### Starting
6+
7+
````bash
8+
docker network create laravel-network
9+
10+
docker volume create --name mariadb_data
11+
docker run -d --name mariadb \
12+
--env ALLOW_EMPTY_PASSWORD=yes \
13+
--env MARIADB_USER=bn_myapp \
14+
--env MARIADB_DATABASE=bitnami_myapp \
15+
--network laravel-network \
16+
--volume mariadb_data:/bitnami/mariadb \
17+
bitnami/mariadb:latest
18+
19+
docker build -t laravel .
20+
21+
docker run -it \
22+
--name laravel \
23+
-p 8000:8000 \
24+
--env DB_HOST=mariadb \
25+
--env DB_PORT=3306 \
26+
--env DB_USERNAME=bn_myapp \
27+
--env DB_DATABASE=bitnami_myapp \
28+
--network laravel-network \
29+
--volume ${PWD}/project:/app \
30+
laravel
31+
````
32+
33+
### Access to app bash
34+
35+
````bash
36+
docker exec -it laravel bash
37+
````
38+
39+
If you like to run simultaneously the app and the bash, you need two terminals;
40+
or run the app in background with `docker run -d ...` and then run the bash with `docker exec -it laravel bash`.
41+
42+
43+
## Extending the image
44+
45+
1. Create a new `Dockerfile` in your project with `FROM bitnami/laravel:latest`.
46+
2. Run `docker build -t laravel .` to build the new image.
47+
3. Run `docker run ...` replacing bitnami image by just `laravel`.
48+
49+
50+
## Develop
51+
52+
**Q: How to upgrade laravel app on this repository?**
53+
54+
**A:** Just remove `project` folder and re-run `docker run -it ...` again.

Diff for: project/.buildcomplete

Whitespace-only changes.

Diff for: project/.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

Diff for: project/.env.example

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
9+
LOG_LEVEL=debug
10+
11+
DB_CONNECTION=mysql
12+
DB_HOST=127.0.0.1
13+
DB_PORT=3306
14+
DB_DATABASE=laravel
15+
DB_USERNAME=root
16+
DB_PASSWORD=
17+
18+
BROADCAST_DRIVER=log
19+
CACHE_DRIVER=file
20+
FILESYSTEM_DISK=local
21+
QUEUE_CONNECTION=sync
22+
SESSION_DRIVER=file
23+
SESSION_LIFETIME=120
24+
25+
MEMCACHED_HOST=127.0.0.1
26+
27+
REDIS_HOST=127.0.0.1
28+
REDIS_PASSWORD=null
29+
REDIS_PORT=6379
30+
31+
MAIL_MAILER=smtp
32+
MAIL_HOST=mailpit
33+
MAIL_PORT=1025
34+
MAIL_USERNAME=null
35+
MAIL_PASSWORD=null
36+
MAIL_ENCRYPTION=null
37+
MAIL_FROM_ADDRESS="[email protected]"
38+
MAIL_FROM_NAME="${APP_NAME}"
39+
40+
AWS_ACCESS_KEY_ID=
41+
AWS_SECRET_ACCESS_KEY=
42+
AWS_DEFAULT_REGION=us-east-1
43+
AWS_BUCKET=
44+
AWS_USE_PATH_STYLE_ENDPOINT=false
45+
46+
PUSHER_APP_ID=
47+
PUSHER_APP_KEY=
48+
PUSHER_APP_SECRET=
49+
PUSHER_HOST=
50+
PUSHER_PORT=443
51+
PUSHER_SCHEME=https
52+
PUSHER_APP_CLUSTER=mt1
53+
54+
VITE_APP_NAME="${APP_NAME}"
55+
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
56+
VITE_PUSHER_HOST="${PUSHER_HOST}"
57+
VITE_PUSHER_PORT="${PUSHER_PORT}"
58+
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
59+
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Diff for: project/.gitattributes

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

Diff for: project/.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/.phpunit.cache
2+
/node_modules
3+
/public/build
4+
/public/hot
5+
/public/storage
6+
/storage/*.key
7+
/vendor
8+
.env
9+
.env.backup
10+
.env.production
11+
.phpunit.result.cache
12+
Homestead.json
13+
Homestead.yaml
14+
auth.json
15+
npm-debug.log
16+
yarn-error.log
17+
/.fleet
18+
/.idea
19+
/.vscode

0 commit comments

Comments
 (0)