Skip to content

Commit

Permalink
added self-hosting guide
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuraghavb committed Jun 21, 2022
1 parent 22a6f5f commit 9bea114
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ COPY . .
RUN npm run generate

FROM nginx:alpine
COPY --from=build /app/public /usr/share/nginx/html
COPY --from=build /app/public /usr/share/nginx/html
EXPOSE 80
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ You can,
- Logo and some icons by [Vishnu Raghav](https://www.vishnuraghav.com/)
- [QRCode-SVG](https://github.com/papnkukn/qrcode-svg)

## Self-Hosting Guide - Docker

In order to quickly host the EnBizCard Generator on a machine running Docker and Docker Compose, follow these steps:

1. Create a .env file by copying and adjusting env.example:

```
cp env.example .env
```

2. Run `docker-compose up -d`
3. Access the app at http://localhost:22212 (or a different port, in case you edited the .env file).

## License

```
Expand All @@ -78,6 +91,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
```

## Support me
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ services:
build: .
container_name: enbizcard
ports:
- 80:80
- ${ENBIZCARD_PORT}:80
restart: always
1 change: 1 addition & 0 deletions env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENBIZCARD_PORT:22212

0 comments on commit 9bea114

Please sign in to comment.