string1.0The version of the configuration file. The current version is 1.0.
string''Name of your project.
Image{}image section is generated based on the analysis of your app. It contains the Docker image that will be used to run your app. You can change the image to a different one if you want to use a different base image.
images:
default:
name: bitship/bit-9df6a1addf9cfa4dee3ae974124e4ab5385e18b2e5acd7a65dd07900e2c6c8af
dependencies:
node: '22'
pnpm: latest
db:
name: postgres:17-alpine
stringName of docker image with it's registry and optionally tag e.g. alpine:latest
stringPath to build local images from Docker files.
objectList of dependencies and their versions that are included in image https://www.bit-ship.dev/tools
Task{}The tasks section allows you to define reusable scripts.
tasks:
test:
command?: 'npm run test'
build:
command?: 'npm run build'
env:
NODE_ENV?: 'production'
stringCommand that will be executed
objectEnvironment variables
to be implemented
objectFor more specific usecases options are passed directly to docker https://docs.docker.com/reference/compose-file/services
Job{}Jobs are sequences of tasks that can be run manually or hooked to a triggers.
jobs:
qa:
on:
commit: post-commit
tasks:
- lint
- test
OnHook job on events like commit, push etc.
pre-commit | post-commitArray<string | string[]>[]List of task that should be executed.
App{}Apps are tasks that serves FE assets or run BE applications. You can use it to run a web server, a database or other network applications.
apps:
web:
task: dev
expose:
- port: 3000
localHost: web.localhost
access: proxy-public
db:
task: pg
expose:
- port: 5432
access: public
stringName of the task to be run
Expose[]number | stringpublic | proxy-publicAccess configures how the port is exposed to outside container.
| Options | Description |
|---|---|
| public | port is exposed directly to host machine |
| proxy-public | port is exposed in internal network and acessible trough a bit-ship proxy |
stringHost under which you app runs locally. For example web.localhost
to be implemented