-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
51 lines (42 loc) · 1.13 KB
/
Copy pathdocker-compose.build.yml
File metadata and controls
51 lines (42 loc) · 1.13 KB
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
# Local build override: builds the release images from this checkout.
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.build.yml up --build
#
# Or set an alias / shell function:
# alias dc-build='docker compose -f docker-compose.yml -f docker-compose.build.yml'
# dc-build up --build
x-backend-build: &backend-build
build:
context: .
dockerfile: Dockerfile
x-agent-build: &agent-build
build:
context: .
dockerfile: agent/Dockerfile
args:
# INSTALL_CHROME=false (default): ~200 MB image, connects to host Chrome.
# Set INSTALL_CHROME=true to embed Chromium + Xvfb (~1.2 GB), fully self-contained.
INSTALL_CHROME: ${INSTALL_CHROME:-false}
x-chrome-build: &chrome-build
build:
context: .
dockerfile: chrome/Dockerfile
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
BACKEND_URL: http://api:8000
api:
<<: *backend-build
worker:
<<: *backend-build
beat:
<<: *backend-build
agent-1:
<<: *chrome-build
# Remote edge agent: same image, same default (no embedded Chrome).
agent:
<<: *agent-build