Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM php:8.2.8-cli-alpine

ARG PHP_VERSION=8.2.8
ARG VERSION=2.6.2
ENV VERSION=${VERSION}

ENV SERVER_HOST='sharedwithexpose.com'

ENV SERVER_PORT=443
FROM php:${PHP_VERSION}-cli-alpine

ENV SERVERS_ENDPOINT='https://expose.dev/api/servers'

ENV AUTH_TOKEN=
ENV BASIC_AUTH=
ENV DOMAIN=
ENV DNS_SERVER=true

ENV AUTH_TOKEN=''

ENV MEMORY_LIMIT='128M'

ENV SERVER=
ENV SERVER_HOST='sharedwithexpose.com'
ENV SERVER_PORT=443
ENV SERVERS_ENDPOINT='https://expose.dev/api/servers'
ENV SHARE=
ENV SUBDOMAIN='expose'

COPY config.php /root/.expose/config.php
Expand Down
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# expose-docker
# expose-docker

Exposes [beyondcode/expose](https://expose.dev/) via docker

## Usage

```bash
docker run backdevs/expose <expose command>
```

For example, `docker run backdevs/expose share http://localhost`.

### Docker compose

```yaml
services:
# Other services

expose:
image: backdevs/expose
args:
PHP_VERSION: 8.2.8
VERSION: 2.6.2
environment:
AUTH_TOKEN: 'your-expose-dot-dev-token'
ports:
- 4040:4040
```

Now you can run commans like `docker compose run expose share http://localhost`.

### Arguments

Argument | Default value
--------------------|-----------------
PHP_VERSION | 8.2.8
VERSION | 2.6.2

### Environment variables

Variable | Default value
--------------------|-----------------
AUTH_TOKEN | *None*
BASIC_AUTH | *None*
DOMAIN | *None*
DNS_SERVER | `TRUE`
MEMORY_LIMIT | 128M
SERVER | *None*
SERVER_HOST | sharedwithexpose.com
SERVER_PORT | 443
SERVERS_ENDPOINT | https://expose.dev/api/servers
SHARE | *None*
SUBDOMAIN | expose