https://github.com/adalinesimonian/docker-anvil-connect
Lightweight Anvil Connect image for Docker using Alpine Linux
https://github.com/adalinesimonian/docker-anvil-connect
Last synced: 8 days ago
JSON representation
Lightweight Anvil Connect image for Docker using Alpine Linux
- Host: GitHub
- URL: https://github.com/adalinesimonian/docker-anvil-connect
- Owner: adalinesimonian
- License: mit
- Created: 2015-10-17T00:24:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T06:41:47.000Z (over 3 years ago)
- Last Synced: 2024-11-04T04:30:47.626Z (6 months ago)
- Language: JavaScript
- Homepage: https://hub.docker.com/r/vartan/anvil-connect/
- Size: 9.77 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - adalinesimonian/docker-anvil-connect - Lightweight Anvil Connect image for Docker using Alpine Linux (others)
README
# anvil-connect
[](https://travis-ci.org/vsimonian/docker-anvil-connect)
Lightweight [Anvil Connect][anvil-connect] image for Docker using Alpine Linux
## Try it out
Note: It's best not to expose the port in a production environment, and instead
to use nginx or some other reverse proxy to utilize SSL.```
$ docker run -d --name connect-redis vartan/alpine-redis
$ docker run -d --link connect-redis -p 3000:3000/tcp vartan/anvil-connect:0.1.58 \
--redis-host connect-redis
```## Volumes
- `/connect/secrets` - Secret values (See [the configuration section](#configuration)
for details)
- `/connect/keys` - Anvil Connect's keys folder, which contains signing and
encryption key pairs and the setup token necessary to configure the CLI client.## Command-line options
- `--issuer` - sets the issuer URI (default: `http://localhost:3000`)
- `--client-registration [scoped|dynamic|token]` - sets the client registration
type (default: `scoped`)
- `--redis-host` - sets the hostname or IP of the Redis server (default:
`localhost`)
- `--redis-port` - sets the port number of the Redis server (default: `6397`)
- `--redis-db` - index of the Redis DB (default: `0`)
- `--redis-password` - password for the Redis server
- `--cookie-secret` - sets the secure cookie secret (default: random string)
- `--session-secret` - sets the secure session secret (default: random string)## Configuration
> _See the [Anvil Connect documentation][connect-docs] for more details_
Create a configuration file named `config.json`. Then, create your Dockerfile.
```Dockerfile
FROM vartan/anvil-connect:0.1.58COPY config.json /connect/config.json
```If you've customized any part of Connect, just copy in the folders. For example:
```Dockerfile
COPY views /connect/views
COPY public /connect/public
```Then, build your image.
```
$ docker build -t my-anvil-connect-server .
```Keep secret values out of the image and in a `secrets.json` file in the
`secrets` volume.```json
{
"providers": {
"google": {
"client_secret": "changeme"
}
},
"cookie_secret": "changeme",
"session_secret": "changeme"
}
``````
$ docker run -d -p 3000:3000/tcp -v /path/to/secret/folder:/connect/secrets:ro \
my-anvil-connect-server
```## License
MIT. Based off [the official Redis image][redis-image], which is licensed under a
BSD-style license.[anvil-connect]: https://github.com/anvilresearch/connect
[connect-docs]: https://github.com/anvilresearch/connect-docs
[redis-image]: https://github.com/docker-library/redis