Compare commits

..

2 Commits

Author SHA1 Message Date
63b213fff9 Update vencloud 2024-09-19 10:46:25 -03:00
3f4b1b11b8 Add nextcloud 2024-09-19 10:34:42 -03:00
3 changed files with 60 additions and 33 deletions

View File

@ -0,0 +1,46 @@
version: '3'
services:
db:
container_name: nextcloud_db
image: postgres:alpine
restart: always
volumes:
- /docker/appdata/nextcloud/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
redis:
image: redis:alpine
restart: always
app:
container_name: nextcloud_app
image: nextcloud:apache
restart: always
ports:
- 8080:80
volumes:
- /docker/appdata/nextcloud/nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
- POSTGRES_PASSWORD=
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
depends_on:
- db
- redis
cron:
container_name: nextcloud_cron
image: nextcloud:apache
restart: always
volumes:
- /docker/appdata/nextcloud/nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
- redis

View File

@ -1,42 +1,13 @@
# Port and host to bind the server to. If running in Docker, there's no point changing them.
PORT=8080
HOST=0.0.0.0
# The URI used for connecting to redis
REDIS_URI=redis:6379
# URL that the root of the API will redirect to.
# The site specified here HAS TO link to the source code (including your modificiations, if applicable),
# to comply with the AGPL-3.0 license terms.
# If your instance is public, you should also provide a Privacy Policy for your users.
ROOT_REDIRECT=https://github.com/Vencord/Vencloud
# Your Discord application data # Your Discord application data
# 1. Create application at https://discord.com/developers/applications # 1. Create application at https://discord.com/developers/applications
# 2. Navigate to the OAuth2 tab # 2. Navigate to the OAuth2 tab
# 3. Under "Client information", you'll find the client id and secret. You'll have to press "Reset Secret" to get the secret # 3. Under "Client information", you'll find the client id and secret. You'll have to press "Reset Secret" to get the secret
# 4. Under "Redirects", click "Add Redirect" and add your domain with `/v1/oauth/callback` appended to it
DISCORD_CLIENT_ID= DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET= DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URI=https://example.com/v1/oauth/callback
# This is prepended to the user ID before hashing to generate the key used to store their api secret. # This is prepended to the user ID before hashing to generate the key used to store their api secret.
# Can be generated via `openssl rand -hex 64`. At least 32 bytes should be used # Can be generated via `openssl rand -hex 64`. At least 32 bytes should be used
PEPPER_SECRETS= PEPPER_SECRETS=
# This is prepended to the user ID before hashing to generate the key used to store their settings. # This is prepended to the user ID before hashing to generate the key used to store their settings.
# Can be generated with `openssl rand -hex 64`. At least 32 bytes should be used # Can be generated with `openssl rand -hex 64`. At least 32 bytes should be used
PEPPER_SETTINGS= PEPPER_SETTINGS=
# The maximum settings backup size in bytes. Default is 32MB.
SIZE_LIMIT=32000000
# List of Discord user IDs allowed to use the service, separated by commas.
# If empty, all users are allowed
ALLOWED_USERS=
# Whether to enable and expose analytics at /metrics
PROMETHEUS=false
# The header containing the connecting user's ip when running behind a reverse proxy,
# e.g. X-Forwarded-For or CF-Connecting-IP. Used for anti abuse purposes.
# If not using a reverse proxy, leave this empty
PROXY_HEADER=X-Forwarded-For

View File

@ -2,6 +2,7 @@ version: "3.1"
services: services:
redis: redis:
container_name: vencloud_redis
image: redis:alpine image: redis:alpine
restart: always restart: always
volumes: volumes:
@ -15,11 +16,20 @@ services:
retries: 5 retries: 5
backend: backend:
image: vencord/backend image: ghcr.io/vencord/vencloud:main
build: .
restart: always restart: always
environment:
- PORT=8080 # Port and host to bind the server to. If running in Docker, there's no point changing them.
- HOST=0.0.0.0
- REDIS_URI=redis:6379 # The URI used for connecting to redis
- ROOT_REDIRECT=https://github.com/Vencord/Vencloud
- PROMETHEUS=true # Whether to enable and expose analytics at /metrics
- PROXY_HEADER=X-Forwarded-For # If not using a reverse proxy, leave this empty
- SIZE_LIMIT=32000000 # The maximum settings backup size in bytes. Default is 32MB.
- DISCORD_REDIRECT_URI=https://vencloud.shoebottom.ca/v1/oauth/callback # Under "Redirects", click "Add Redirect" and add your domain with `/v1/oauth/callback` appended to it
- ALLOWED_USERS= # List of Discord user IDs allowed to use the service, separated by commas.
env_file: env_file:
- .env - ../stack.env
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy