string
1.0
The 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
string
Name of docker image with it's registry and optionally tag e.g. alpine:latest
string
Path to build local images from Docker files.
object
List 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'
string
Command that will be executed
object
Environment variables
to be implemented
object
For 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
On
Hook job on events like commit, push etc.
pre-commit
| post-commit
Array<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
string
Name of the task to be run
Expose[]
number
| string
public
| proxy-public
Access 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 |
string
Host under which you app runs locally. For example web.localhost
to be implemented