Skip to content

Commit 757fff1

Browse files
committed
add readme, license and docker files
1 parent c1349f8 commit 757fff1

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM php:8.2.7-alpine
2+
3+
WORKDIR /var/www/api
4+
5+
COPY . .
6+
7+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
8+
php composer-setup.php && \
9+
php -r "unlink('composer-setup.php');"
10+
11+
RUN php composer.phar install
12+
13+
CMD [ "php", "-S", "0.0.0.0:8001", "-t", "./public" ]

docker-compose.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: '3.9'
2+
3+
services:
4+
api:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
networks:
9+
- api_network
10+
hostname: api.local
11+
ports:
12+
- 8001:8001
13+
healthcheck:
14+
test: ["CMD", "nc", "-vz", "127.0.0.1", "8001"]
15+
interval: 3s
16+
timeout: 1s
17+
retries: 20
18+
19+
networks:
20+
api_network:
21+
driver: bridge

license

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Joubert RedRat and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Symfony Request Validator
2+

0 commit comments

Comments
 (0)