From e8395f027b6c3e3f757c740e35b20e76c51b03bd Mon Sep 17 00:00:00 2001 From: kaiyou Date: Mon, 29 Jan 2018 08:52:20 +0100 Subject: Add production Alpine and Debian Stretch Docker images (#225) * First pass at a (swarm-compatible) docker image Uses an existing traefik server as a https reverse proxy. * Add example config for a Docker swarm deployment * Point to traefik config for docker compose setup * Clarify that traefik is needed for the example config * Use node:8-stretch base image and don't install yarn (The base image already contains yarn.) * Initial commit for an Alpine Docker image * Fix docker volume path * Merge #213 and #225 and move files around * Remove unnecessary dependencies from the alpine build * Update Dockerfiles to match install path, config path, etc. * Update the configuration in the example compose file * Update the configuration in the example swarm file * Remove the declared networks and volumes from the compose example, which are not strictly required * Update attachment path in the documentation * Display traefik as a suggestion and not a required dependency * Update the Docker ignored files * Fix typos reported in #225 * Move production Dockerfiles to a production directory * Add the redis configuration settings * Add Docker files to the dockerignore * Make the signup limit configurable --- .../config/custom-environment-variables.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 support/docker/production/config/custom-environment-variables.yaml (limited to 'support/docker/production/config/custom-environment-variables.yaml') diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml new file mode 100644 index 000000000..5226e1742 --- /dev/null +++ b/support/docker/production/config/custom-environment-variables.yaml @@ -0,0 +1,40 @@ +webserver: + hostname: "PEERTUBE_HOSTNAME" + port: + __name: "PEERTUBE_PORT" + __format: "json" + https: + __name: "PEERTUBE_HTTPS" + __format: "json" + +database: + hostname: "PEERTUBE_DB_HOSTNAME" + port: + __name: "PEERTUBE_DB_PORT" + __format: "json" + suffix: "PEERTUBE_DB_SUFFIX" + username: "PEERTUBE_DB_USERNAME" + password: "PEERTUBE_DB_PASSWORD" + +redis: + hostname: "PEERTUBE_REDIS_HOSTNAME" + port: + __name: "PEERTUBE_REDIS_PORT" + __format: "json" + auth: "PEERTUBE_REDIS_AUTH" + +admin: + email: "PEERTUBE_ADMIN_EMAIL" + +signup: + enabled: + __name: "PEERTUBE_SIGNUP_ENABLED" + __format: "json" + limit: + __name: "PEETUBE_SIGNUP_LIMIT" + __format: "json" + +transcoding: + enabled: + __name: "PEERTUBE_TRANSCODING_ENABLED" + __format: "json" -- cgit v1.2.3