-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from DMcP89/50-production-docker-file
Creating docker file for production use
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM homebrew/brew:latest | ||
|
||
RUN brew tap echovault/echovault | ||
RUN brew install echovault/echovault/echovault | ||
|
||
ENV PORT=7480 | ||
ENV RAFT_PORT=8000 | ||
ENV ML_PORT=7946 | ||
ENV SERVER_ID=1 | ||
ENV PLUGIN_DIR=/usr/local/lib/echovault | ||
ENV DATA_DIR=/var/lib/echovault | ||
ENV TLS=false | ||
ENV MTLS=false | ||
ENV BOOTSTRAP_CLUSTER=false | ||
ENV ACL_CONFIG=/etc/echovault/config/acl.yml | ||
ENV REQUIRE_PASS=false | ||
ENV PASSWORD=password1 | ||
ENV FORWARD_COMMAND=false | ||
ENV SNAPSHOT_THRESHOLD=1000 | ||
ENV SNAPSHOT_INTERVAL=5m30s | ||
ENV RESTORE_SNAPSHOT=true | ||
ENV RESTORE_AOF=false | ||
ENV AOF_SYNC_STRATEGY=everysec | ||
ENV MAX_MEMORY=2000kb | ||
ENV EVICTION_POLICY=noeviction | ||
ENV EVICTION_SAMPLE=20 | ||
ENV EVICTION_INTERVAL=100ms | ||
# List of echovault cert/key pairs | ||
ENV CERT_KEY_PAIR_1=/etc/ssl/certs/echovault/echovault/server1.crt,/etc/ssl/certs/echovault/echovault/server1.key | ||
ENV CERT_KEY_PAIR_2=/etc/ssl/certs/echovault/echovault/server2.crt,/etc/ssl/certs/echovault/echovault/server2.key | ||
# List of client certificate authorities | ||
ENV CLIENT_CA_1=/etc/ssl/certs/echovault/client/rootCA.crt | ||
|
||
ENTRYPOINT ["EchoVault"] |