mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

docker-compose ? #30

Closed hemna closed 3 years ago

hemna commented 3 years ago

Do you have a working sample for a docker-compose.yml ?

I tried this and it just errored out with a pastebin command line help output.

version: '3.2'

services:
  pastebin:
    image: mkaczanowski/pastebin:latest
    container_name: pastebin
    ports:
      - 7780:8000
└─> docker-compose up
Pulling pastebin (mkaczanowski/pastebin:latest)...
latest: Pulling from mkaczanowski/pastebin
69692152171a: Pull complete
66e198a52f6b: Pull complete
Digest: sha256:17c72bcb06c8a29c209a2ca068083c2c374883ecddca5079dbdfd27b893146ce
Status: Downloaded newer image for mkaczanowski/pastebin:latest
Creating pastebin ... done
Attaching to pastebin
pastebin    | pastebin 0.1.3
pastebin    | Simple, standalone and fast pastebin service.
pastebin    |
pastebin    | USAGE:
pastebin    |     pastebin [FLAGS] [OPTIONS]
pastebin    |
pastebin    | FLAGS:
pastebin    |     -h, --help               Prints help information
pastebin    |         --ui-line-numbers    Display line numbers
pastebin    |     -V, --version            Prints version information
pastebin    |
pastebin    | OPTIONS:
pastebin    |         --address <address>                       IP address or host to listen on [default: localhost]
pastebin    |         --db <db-path>                            Database file path [default: ./pastebin.db]
pastebin    |         --environment <environment>               Rocket server environment [default: production]
pastebin    |         --keep-alive <keep-alive>                 Keep-alive timeout in seconds [default: 5]
pastebin    |         --log <log>                               Max log level [default: normal]
pastebin    |         --plugins <plugins>...
pastebin    |             Enable additional functionalities (ie. prism, mermaid) [default: prism]
pastebin    |
pastebin    |         --port <port>                             Port number to listen on [default: 8000]
pastebin    |         --slug-charset <slug-charset>
pastebin    |             Character set (expressed as rust compatible regex) to use for generating the URL slug [default: [A-Za-z0-
pastebin    |             9_-]]
pastebin    |         --slug-len <slug-len>                     Length of URL slug [default: 21]
pastebin    |         --tls-certs <tls-certs>                   Path to certificate chain in PEM format
pastebin    |         --tls-key <tls-key>                       Path to private key for tls-certs in PEM format
pastebin    |         --ttl <ttl>                               Time to live for entries, by default kept forever [default: 0]
pastebin    |         --ui-expiry-times <ui-expiry-times>...
pastebin    |             List of paste expiry times redered in the UI dropdown selector [default: 5 minutes, 10 minutes, 1 hour, 1
pastebin    |             day, 1 week, 1 month, 1 year, Never]
pastebin    |         --uri <uri>                               Override default URI
pastebin    |         --uri-prefix <uri-prefix>                 Prefix appended to the URI (ie. '/pastebin') [default: ]
pastebin    |         --workers <workers>                       Number of concurrent thread workers [default: 0]
pastebin exited with code 0
mkaczanowski commented 3 years ago

please see: https://github.com/mkaczanowski/pastebin/pull/26