Skip to content

A custom built container image for the Expose tunneling service.

License

Notifications You must be signed in to change notification settings

socheatsok78/docker-expose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

About

A custom built container image for the Expose tunneling service.

Source | Docker Hub

What is Expose?

A beautiful, fully open-source, tunneling service - written in pure PHP

Website | Source code

Usage

Running as a server

# Start a self-hosted server on port "80" with the domain "sharedwithexpose.localhost"
# Environment variables specific to the server:
# - `EXPOSE_SERVER_ADMIN_USERNAME` - The username for the admin panel, defaults to `admin`
# - `EXPOSE_SERVER_ADMIN_PASSWORD` - The password for the admin panel, defaults to `expose`
docker run -d --name expose-server -p 80:80 \
    -e EXPOSE_SERVER_DOMAIN=sharedwithexpose.localhost \
    -e EXPOSE_SERVER_PORT=80 \
    -e EXPOSE_SERVER_ADMIN_USERNAME=admin \
    -e EXPOSE_SERVER_ADMIN_PASSWORD=expose \
    socheatsok78/expose:main serve

Visit http://expose.sharedwithexpose.localhost to access the admin panel.

Running as a client

# Connect to a self-hosted server running on "sharedwithexpose.localhost:80" and expose "http://your-local-service:80"
# Environment variables specific to the client:
# - `EXPOSE_AUTH_TOKEN` - The authentication token for the server, defaults to `""`
# - `EXPOSE_AUTH_BASIC` - The basic authentication for the server, defaults to `""`
docker run -d --name expose-server -p 4040:4040 \
    -e EXPOSE_SERVER_DOMAIN=sharedwithexpose.localhost \
    -e EXPOSE_SERVER_PORT=80 \
    socheatsok78/expose:main share http://your-local-service:80

Environment variables

These are global environment variables that can be used to configure both the Expose server and client.

  • EXPOSE_SERVER_DOMAIN - The domain of the server, defaults to localhost
  • EXPOSE_SERVER_PORT - The port of the server, defaults to 443
  • EXPOSE_CONFIG_DEFAULT_SERVER - The default server to use, defaults to self-hosted
  • EXPOSE_CONFIG_SERVER_ENDPOINT_URL - The endpoint URL of the Expose public servers, defaults to https://expose.dev/api/servers

Docker Secrets

As an alternative to passing sensitive information via environment variables, _FILE may be appended to the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in /run/secrets/<secret_name> files. For example:

docker run -d --name expose-server \
    -e EXPOSE_SERVER_DOMAIN=sharedwithexpose.localhost \
    -e EXPOSE_SERVER_PORT=80 \
    -e EXPOSE_SERVER_ADMIN_USERNAME_FILE=/run/secrets/username \
    -e EXPOSE_SERVER_ADMIN_PASSWORD_FILE=/run/secrets/password \
    socheatsok78/expose:main serve

Currently, this is only supported for EXPOSE_SERVER_ADMIN_USERNAME, EXPOSE_SERVER_ADMIN_PASSWORD, EXPOSE_AUTH_TOKEN and EXPOSE_AUTH_BASIC.

License

The MIT License (MIT). Please see License File for more information.

About

A custom built container image for the Expose tunneling service.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published