-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (75 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
75 lines (75 loc) · 1.53 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
app:
build:
context: ./app
dockerfile: Dockerfile
no_cache: false
args:
DATA_URL: ''
PORT: 3000
depends_on:
server:
condition: service_started
restart: true
image: cars
container_name: cars
ports:
- 3000:3000
user: nginx
read_only: true
privileged: false
tmpfs:
- /tmp:rw
server:
image: python:3.14-alpine
container_name: cars-server
volumes:
- ./util:/scripts
- ./data:/data
ports:
- 8000:8000
read_only: true
privileged: false
tmpfs:
- /tmp:rw
command: ["python", "/scripts/http_server.py"]
data:
build:
context: ./data
dockerfile: Dockerfile
no_cache: false
args:
POETRY_VERSION: ${POETRY_VERSION}
BASE_IMAGE: python-lambda
image: cars-lambda
container_name: cars-lambda
ports:
- 9000:8080
user: lambda
read_only: true
privileged: false
tmpfs:
- /tmp:rw
lambda:
build:
context: ./lambda
dockerfile: Dockerfile
no_cache: false
image: python-lambda
tests:
build:
context: .
dockerfile: ./util/Dockerfile
no_cache: false
image: cars-tests
container_name: cars-tests
environment:
- CI=true
- MAX_DIFF_PIXEL_RATIO=0
read_only: false
privileged: true
volumes:
- ./app/tests/playwright:/app/tests/playwright
- ./app/test-results:/app/test-results
- ./data:/data
command: ["pnpm", "run", "playwright"]