Affine deploy script based on official compose file
This commit is contained in:
36
affine/env.sh
Normal file
36
affine/env.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
# select a revision to deploy, available values: stable, beta, canary
|
||||
AFFINE_REVISION=stable
|
||||
|
||||
NETWORK="affine_net"
|
||||
|
||||
# set the port for the server container it will expose the server on
|
||||
AFFINE_PORT=3010
|
||||
|
||||
# set the host for the server for outgoing links
|
||||
# AFFINE_SERVER_HTTPS=true
|
||||
# AFFINE_SERVER_HOST=affine.yourdomain.com
|
||||
# or
|
||||
# AFFINE_SERVER_EXTERNAL_URL=https://affine.yourdomain.com
|
||||
|
||||
# position of the database data to persist
|
||||
DB_DATA_LOCATION=$HOME/.affine/self-host/postgres/pgdata
|
||||
# position of the upload data(images, files, etc.) to persist
|
||||
UPLOAD_LOCATION=$HOME/.affine/self-host/storage
|
||||
# position of the configuration files to persist
|
||||
CONFIG_LOCATION=$HOME/.affine/self-host/config
|
||||
|
||||
REDIS_SERVER_HOST="host.containers.internal"
|
||||
REDIS_SERVER_PORT="6379"
|
||||
|
||||
DATABASE_HOST="host.containers.internal"
|
||||
DATABASE_PORT="5432"
|
||||
|
||||
# database credentials
|
||||
DB_USERNAME=affine
|
||||
DB_PASSWORD=
|
||||
DB_DATABASE=affine
|
||||
|
||||
CONTAINER_PREFIX="affine"
|
||||
CONTAINER_REDIS="affine_redis"
|
||||
CONTAINER_POSTGRES="affine_postgres"
|
||||
CONTAINER_SERVER="affine_server"
|
||||
Reference in New Issue
Block a user