-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED Docker-compose file for development
- Loading branch information
1 parent
2330b8f
commit eacc6c4
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM php:7.4-alpine3.12 | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add --update libdmtx bash curl | ||
|
||
COPY composer.json composer.lock ./ | ||
|
||
RUN curl -s https://getcomposer.org/installer | php | ||
RUN ./composer.phar i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3.4' | ||
services: | ||
api: | ||
ports: | ||
- "9000:8080" | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
command: "php -S 0.0.0.0:8080 -t public" | ||
volumes: | ||
- ./:/app |