Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.57 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
x-app: &app
image: vectorizing:local
services:
moto:
image: ghcr.io/getmoto/motoserver@sha256:91fd602a21f49cf9eb82fdf474015a3c131d40104c8297ea6a2ca920708ae32c
environment:
MOTO_PORT: 5000
healthcheck:
test:
- CMD
- python
- -c
- "import urllib.request; urllib.request.urlopen('http://localhost:5000/moto-api/')"
interval: 2s
timeout: 2s
retries: 15
moto-init:
<<: *app
build: .
environment: &local-aws
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_DEFAULT_REGION: eu-central-1
AWS_ENDPOINT_URL: http://moto:5000
AWS_EC2_METADATA_DISABLED: "true"
S3_BUCKET: vectorizing-local
S3_TEST_BUCKET: vectorizing-tests
SENTRY_DSN: ${SENTRY_DSN:-}
PORT: ${PORT:-8000}
depends_on:
moto:
condition: service_healthy
command: python scripts/init_moto.py
restart: "no"
web:
<<: *app
environment:
<<: *local-aws
command: sh -c "exec gunicorn -w 4 'vectorizing:create_app()' --timeout 0 -b 0.0.0.0:$$PORT --log-level debug"
depends_on:
moto-init:
condition: service_completed_successfully
ports:
- "127.0.0.1:${PORT:-8000}:${PORT:-8000}"
test:
<<: *app
profiles: [testing]
environment:
<<: *local-aws
volumes:
- ./vectorizing/tests/results:/app/vectorizing/tests/results
- ./vectorizing/tests/diff_output:/app/vectorizing/tests/diff_output
depends_on:
moto-init:
condition: service_completed_successfully
command: python -m pytest