-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathprocess-compose.yaml
More file actions
67 lines (65 loc) · 2.44 KB
/
Copy pathprocess-compose.yaml
File metadata and controls
67 lines (65 loc) · 2.44 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
version: "0.5"
is_strict: true
environment:
- "OSRD_PATH=${OSRD_PATH}" # Define `OSRD_PATH` in your `.env` (or `.envrc` with `direnv`)
- "OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc"
- "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4317"
- "OTEL_METRICS_EXPORTER=none"
- "OTEL_LOGS_EXPORTER=none"
processes:
core:
working_dir: "${OSRD_PATH}/core/"
command: "gradle run --args='worker'"
environment:
- "ALL_INFRA=true"
- "CORE_EDITOAST_URL=http://localhost:8090"
- "CORE_MONITOR_TYPE=opentelemetry"
- "OTEL_SERVICE_NAME=osrd-core"
- "VALKEY_URL=redis://localhost"
- "AWS_ACCESS_KEY_ID=access_key"
- "AWS_SECRET_ACCESS_KEY=secret_key"
- "AWS_ENDPOINT_URL_S3=http://localhost:9900"
- "BUCKET_NAME=osrd"
gateway:
working_dir: "${OSRD_PATH}/gateway/"
command: "cargo run"
environment:
- "OTEL_SERVICE_NAME=osrd-gateway"
editoast:
working_dir: "${OSRD_PATH}/editoast/"
command: |
cargo run --package fga_migrations -- apply
diesel migration run --locked-schema
cargo run -- user add --skip-if-exists 'Example User' 'mock/mocked'
cargo run -- roles add 'mock/mocked' Admin
cargo run -- runserver
environment:
- "EDITOAST_PORT=8090"
- "ROOT_URL=http://localhost:4000/api"
- "VALKEY_URL=redis://localhost"
- "DATABASE_URL=postgres://osrd:password@localhost/osrd"
- "OSRDYNE_API_URL=http://localhost:4242/"
- "OTEL_SERVICE_NAME=osrd-editoast"
- "TELEMETRY_KIND=opentelemetry"
- "TELEMETRY_ENDPOINT=http://localhost:4317"
- "OSRD_MQ_URL=amqp://osrd:password@localhost:5672/%2f"
- "FGA_API_URL=http://localhost:8091"
- "EDITOAST_NO_CACHE=${EDITOAST_NO_CACHE:-false}"
- "EDITOAST_CORE_SINGLE_WORKER=true"
- "DYNAMIC_ASSETS_PATH=${OSRD_PATH}/assets"
front:
working_dir: "${OSRD_PATH}/front/"
command: |
npm install
npm run build-ui
npm start
osrdyne:
working_dir: "${OSRD_PATH}/osrdyne/"
command: "cargo run -- ${OSRD_PATH}/process-compose/osrdyne.yaml"
environment:
- "OTEL_SERVICE_NAME=osrd-osrdyne"
- "OSRDYNE__OPENTELEMETRY__ENDPOINT=http://localhost:4317"
- "OSRDYNE__AMQP_URI=amqp://osrd:password@localhost:5672/%2f"
- "OSRDYNE__MAX_MSG_SIZE=671088640" # 1024 * 1024 * 128 * 5
- "OSRDYNE__MANAGEMENT_URI=http://osrd:password@localhost:15672/"
- "OSRDYNE__OPENTELEMETRY__ENDPOINT=http://localhost:4317"