Files
baserow/deploy/cloudron/docker-compose.yml
Davide Silvestri e25988ea0d chore: switch to uv and justfile (#4369)
* create backend justfile; switch to uv

* Add deploy and dc-deploy recipes to build images

* Add uv.lock for reproducible builds

* CI fixes + improvements

* Reduce build time

* improve CI caching

* Improve exit early conditions

* Set requires_python==3.11.*; add backend/media to gitignore

* Fix all-in-one Dockerfiles and some other fixes

* Introduce frontend justfile + some other useful recipes

* Fix permissions issue with dev containers

* Improve dockerfiles and docs on how to use the dev env

* Fix mjml-email-compiler service

* Update docs + address feedback

* Fix containers healthchecks

* Fix yarn test in dev container

* Minor fixes to docs and justfile attach command

* Address Petr's feedback

* Address additional feedback

* Add changelog entry

* Address feedback: Petr and Przemek

* address feedback + prepare for saas PR

* minor fixes

* Address Bram's feedback 2
2026-01-15 11:22:22 +01:00

61 lines
1.8 KiB
YAML

services:
# A dev / testing /example compose file for testing cloudron image works without
# cloudron
baserow_cloudron:
image: baserow_cloudron
build:
dockerfile: $PWD/deploy/cloudron/Dockerfile
context: $PWD
args:
- FROM_IMAGE=baserow/baserow:latest
environment:
- CLOUDRON_POSTGRESQL_PASSWORD=baserow
- CLOUDRON_POSTGRESQL_DATABASE=baserow
- CLOUDRON_POSTGRESQL_HOST=db
- CLOUDRON_POSTGRESQL_USERNAME=baserow
- CLOUDRON_POSTGRESQL_PORT=5432
- CLOUDRON_APP_DOMAIN=localhost
- CLOUDRON_MAIL_FROM=noreply@localhost
- CLOUDRON_MAIL_SMTP_SERVER=mailhog
- CLOUDRON_MAIL_SMTP_USERNAME=mailhog
- CLOUDRON_MAIL_SMTP_PASSWORD=mailhog
- CLOUDRON_MAIL_SMTP_PORT=1025
- BASEROW_PUBLIC_URL=http://localhost
ports:
- "80:80"
- "443:443"
volumes:
- baserow_cloudron_data:/app/data
healthcheck:
test: [ "CMD-SHELL", "/baserow/backend/docker/docker-entrypoint.sh backend-healthcheck" ]
interval: 10s
timeout: 5s
retries: 5
stdin_open: true
tty: true
db:
# Please ensure the postgres-client's major version in the backend image is kept in
# sync with this major version so pg_dump remains compatible.
image: postgres:16
environment:
- POSTGRES_USER=${DATABASE_USER:-baserow}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD:-baserow}
- POSTGRES_DB=${DATABASE_NAME:-baserow}
healthcheck:
test: [ "CMD-SHELL", "su postgres -c \"pg_isready -U ${DATABASE_USER:-baserow}\"" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- cloudron_pgdata:/var/lib/postgresql/data
mailhog:
image: mailhog/mailhog
logging:
driver: 'none' # disable saving logs
ports:
- "8025:8025" # web ui
volumes:
cloudron_pgdata:
baserow_cloudron_data: