Skip to content

Commit

Permalink
Add Docker environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Aug 23, 2023
1 parent ceae395 commit 43dd825
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.env
composer.lock
/build
*docker*
*-container*
*.phpunit*
test.php
test.php
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM srmklive/docker-php-cli:7.4

LABEL maintainer="Raza Mehdi<[email protected]>"

ENV DEBIAN_FRONTEND=noninteractive

# Set apps home directory.
ENV APP_DIR /server/http

# Define current working directory.
WORKDIR ${APP_DIR}

RUN apt-get -y autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY supervisor.conf /etc/supervisor/conf.d/supervisord.conf

CMD ["/usr/bin/supervisord"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '2'
services:
app:
build:
context: ./
dockerfile: Dockerfile
image: srmklive/laravel-paypal
restart: always
volumes:
- ./:/server/http
2 changes: 2 additions & 0 deletions supervisor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[supervisord]
nodaemon=true

0 comments on commit 43dd825

Please sign in to comment.