-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.dev.override.yaml
64 lines (59 loc) · 1.55 KB
/
compose.dev.override.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Overrides for the local development docker compose setup. Meant only to be used by
# compose.dev.yaml
x-build: &build
build:
context: .
args:
RUST_PROFILE: dev
# We don't need both of these features in all three services, but it allows reusing one
# container image for both this and the divviup_api service.
RUST_FEATURES: integration-testing,admin
services:
divviup_api:
image: !reset null
<<: *build
develop:
watch:
- path: src/
action: rebuild
divviup_api_migrate:
image: !reset null
<<: *build
develop:
watch:
- path: migration
action: rebuild
ignore:
- README.md
pair_aggregator:
image: !reset null
<<: *build
develop:
watch:
- path: cli/
action: rebuild
- path: client/
action: rebuild
# In the development context, we serve static assets using Vite and a bind mount, so that changes
# to the local assets will immediately be reflected.
static_assets:
image: !reset null
healthcheck: !reset null
build:
context: .
# `develop` cannot be used with an `image` directive, so we need to use a minimal dockerfile
# containing the image we need.
dockerfile: Dockerfile.vite
working_dir: /srv/app
volumes:
- type: bind
source: ./app
target: /srv/app
entrypoint:
- /bin/sh
- -c
- npm i && npx vite --host=0.0.0.0
develop:
watch:
- path: ./app/package.json
action: rebuild