version: "3.4" services: # A dev compose file for quickly setting up an all in one with hot code reloading baserow_all_in_one_dev: image: baserow_dev build: dockerfile: $PWD/deploy/all-in-one/dev.Dockerfile context: $PWD args: # We allow configuring the UID/GID here so you can run as the dev's actual user # reducing the chance the containers screw up the bind mounted folders. UID: $UID GID: $GID environment: EMAIL_SMTP: 'yes' EMAIL_SMTP_HOST: 'mailhog' EMAIL_SMTP_PORT: '1025' ports: - "80:80" - "443:443" volumes: - baserow_all_in_one_data:/baserow/data - $PWD/deploy/all-in-one/baserow.sh:/baserow.sh - $PWD/backend:/baserow/backend - $PWD/premium/backend/:/baserow/premium/backend - $PWD/enterprise/backend/:/baserow/enterprise/backend - $PWD/web-frontend:/baserow/web-frontend # Override the above mounts for node_modules so we use the node_modules built # directly into the image instead of whatever is on your local filesystem. - /baserow/web-frontend/node_modules - $PWD/premium/web-frontend/:/baserow/premium/web-frontend - $PWD/enterprise/web-frontend/:/baserow/enterprise/web-frontend stdin_open: true tty: true mailhog: image: mailhog/mailhog logging: driver: 'none' # disable saving logs ports: - "8025:8025" # web ui volumes: baserow_all_in_one_data: