image: ubuntu:latest
network: default
workdir: /work
env:
CI: "1"
ports:
- "8080:8080"
volumes:
- source: vvbox:cache
target: /cache
- source: ~/.ssh
target: /root/.ssh
readonly: true
pre_install:
- apt-get update
- apt-get install -y git
run:
- npm install
- npm test
services:
- name: db
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: app
ports:
- "5432:5432"
volumes:
- source: vvbox:pgdata
target: /var/lib/postgresql/data