-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yml
More file actions
91 lines (87 loc) · 2.13 KB
/
compose.yml
File metadata and controls
91 lines (87 loc) · 2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
localstack:
image: localstack/localstack:4.9.2
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
env_file:
- "compose/aws.env"
environment:
DEBUG: ${DEBUG:-1}
LS_LOG: WARN # Localstack DEBUG Level
SERVICES: s3,sqs,sns,firehose
LOCALSTACK_HOST: 127.0.0.1
volumes:
- "${TMPDIR:-/tmp}/localstack:/var/lib/localstack"
- ./compose/start-localstack.sh:/etc/localstack/init/ready.d/start-localstack.sh
healthcheck:
test: ["CMD", "curl", "localhost:4566"]
interval: 5s
start_period: 5s
retries: 3
networks:
- cdp-tenant
mongodb:
image: mongo:6.0.13
networks:
- cdp-tenant
ports:
- "27017:27017"
volumes:
- mongodb-data:/data
restart: always
service:
build:
context: .
target: development
ports:
- 8085:8085
links:
- "localstack:localstack"
- "mongodb:mongodb"
depends_on:
localstack:
condition: service_healthy
mongodb:
condition: service_started
profiles:
- service
env_file:
- "compose/aws.env"
- "compose/secrets.env"
environment:
PORT: ${PORT:-8085}
AWS_ENDPOINT_URL: ${AWS_ENDPOINT_URL:-http://localstack:4566}
MONGO_URI: ${MONGO_URI:-mongodb://mongodb:27017/}
HOST: ${HOST:-0.0.0.0}
develop:
watch:
- action: sync
path: ./app
target: /home/nonroot/app
ignore:
- README.md
- "**/*.md"
- "**/test_*.py"
- tests/**/*
- .git/**/*
- .venv/**/*
- .pytest_cache/**/*
- .ruff_cache/**/*
- .vscode/**/*
- .github/**/*
- requirements-dev.txt
- pytest.ini
- .pre-commit-config.yaml
- sonar-project.properties
- LICENCE
- action: rebuild
path: ./pyproject.toml
target: /home/nonroot/pyproject.toml
networks:
- cdp-tenant
volumes:
mongodb-data:
networks:
cdp-tenant:
driver: bridge