send/docs/docker.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

2017-08-25 20:43:11 +00:00
## Setup
2019-09-07 03:00:00 +00:00
Run `docker build -t send:latest .` to create an image or `docker-compose up` to run a full testable stack. *We don't recommend using docker-compose for production.*
2017-08-25 20:43:11 +00:00
2017-06-26 19:34:31 +00:00
## Environment variables:
2017-06-08 23:11:17 +00:00
2017-06-26 19:34:31 +00:00
| Name | Description
|------------------|-------------|
| `PORT` | Port the server will listen on (defaults to 1443).
| `S3_BUCKET` | The S3 bucket name.
| `REDIS_HOST` | Host name of the Redis server.
| `SENTRY_CLIENT` | Sentry Client ID
| `SENTRY_DSN` | Sentry DSN
| `MAX_FILE_SIZE` | in bytes (defaults to 2147483648)
2017-06-26 19:34:31 +00:00
| `NODE_ENV` | "production"
| `BASE_URL` | The HTTPS URL where traffic will be served (e.g. `https://send.firefox.com`)
2017-06-08 23:11:17 +00:00
2017-06-26 19:34:31 +00:00
## Example:
2017-06-08 23:11:17 +00:00
2017-06-26 19:34:31 +00:00
```sh
$ docker run --net=host -e 'NODE_ENV=production' \
-e 'S3_BUCKET=testpilot-p2p-dev' \
-e 'REDIS_HOST=dyf9s2r4vo3.bolxr4.0001.usw2.cache.amazonaws.com' \
-e 'SENTRY_CLIENT=https://51e23d7263e348a7a3b90a5357c61cb2@sentry.prod.mozaws.net/168' \
-e 'SENTRY_DSN=https://51e23d7263e348a7a3b90a5357c61cb2:65e23d7263e348a7a3b90a5357c61c44@sentry.prod.mozaws.net/168' \
-e 'BASE_URL=https://send.firefox.com' \
mozilla/send:latest
2017-06-26 19:34:31 +00:00
```