* Implement a more robust Config This moves the configuration variables from the `.env` file to a new `bewcloud.config.ts` file. Note that DB connection and secrets are still in the `.env` file. This will allow for more reliable and easier personalized configurations, and was a requirement to start working on adding SSO (#13). For now, `.env`-based config will still be allowed and respected (overriden by `bewcloud.config.ts`), but in the future I'll probably remove it (some major upgrade). * Update deploy script to also copy the new config file
34 lines
719 B
YAML
34 lines
719 B
YAML
services:
|
|
website:
|
|
image: ghcr.io/bewcloud/bewcloud:main # alternatively, you can use a specific version/tag, for greater stability
|
|
restart: always
|
|
ports:
|
|
- 127.0.0.1:8000:8000
|
|
mem_limit: '256m'
|
|
env_file:
|
|
- path: .env
|
|
required: true
|
|
volumes:
|
|
- ./data-files:/app/data-files
|
|
|
|
postgresql:
|
|
image: postgres:15
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=fake
|
|
- POSTGRES_DB=bewcloud
|
|
restart: on-failure
|
|
volumes:
|
|
- bewcloud-db:/var/lib/postgresql/data
|
|
ports:
|
|
- 127.0.0.1:5432:5432
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
mem_limit: '256m'
|
|
|
|
volumes:
|
|
bewcloud-db:
|
|
driver: local
|