-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
128 lines (120 loc) · 3.32 KB
/
docker-compose.yml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# You *must* use `just` to run docker compose commands.
# Running docker compose commands directly is not recommended.
services:
orthanc:
image: docker.io/jodogne/orthanc-plugins:1.12.3
volumes:
- ./orthanc.json:/etc/orthanc/orthanc.json:ro
- orthanc:/var/lib/orthanc/db
ports:
- "4242:4242"
- "8042:8042"
networks:
test-oxidicom:
get-data:
build:
dockerfile_inline: |
FROM docker.io/library/alpine:latest
RUN apk add parallel curl jq bash
command: /get_data.sh
tty: true
attach: true
volumes:
- ./get_data.sh:/get_data.sh:ro
depends_on:
orthanc:
condition: service_started
networks:
test-oxidicom:
profiles:
- oxidicom
oxidicom:
image: docker.io/library/rust:1.78-bookworm
user: 1001:0
group_add:
- ${GID-0}
volumes: &RUST_VOLUMES
- cargo-home:/cargo
- cargo-target:/target
- ./:/src:ro
- minichris-files:/data:rw
working_dir: /src
environment:
OXIDICOM_FILES_ROOT: /data
OXIDICOM_DB_CONNECTION: postgresql://chris:chris1234@db:5432/chris
OXIDICOM_SCP_AET: OXIDICOMTEST
OXIDICOM_PACS_ADDRESS: '{OXITESTORTHANC="orthanc:4242"}'
OXIDICOM_LISTENER_PORT: 11112
OXIDICOM_LISTENER_THREADS: 8
OXIDICOM_VERBOSE: "yes"
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4317"
OTEL_RESOURCE_ATTRIBUTES: service.name=oxidicom-test
OXIDICOM_TEST_URL: http://chris:8000/api/v1/
OXIDICOM_TEST_USERNAME: chris
OXIDICOM_TEST_PASSWORD: chris1234
CARGO_TARGET_DIR: /target
CARGO_HOME: /cargo
CARGO_TERM_COLOR: always
# RUST_BACKTRACE: full
# DATABASE_URL must be set for the sqlx crate to validate queries at compile time.
# see https://docs.rs/sqlx/latest/sqlx/macro.query.html#requirements
DATABASE_URL: "postgresql://chris:chris1234@db:5432/chris"
depends_on:
orthanc:
condition: service_started
rust-target-dir-permissions:
condition: service_completed_successfully
get-data:
condition: service_completed_successfully
profiles:
- oxidicom
networks:
minichris-local:
test-oxidicom:
rust-target-dir-permissions:
image: docker.io/library/rust:1.78-bookworm
volumes: *RUST_VOLUMES
command: chmod g+rwx /target /cargo
profiles:
- oxidicom
networks:
test-oxidicom:
openobserve:
image: public.ecr.aws/zinclabs/openobserve:v0.10.6-rc1
environment:
ZO_ROOT_USER_EMAIL: [email protected]
ZO_ROOT_USER_PASSWORD: chris1234
ZO_DATA_DIR: /data
ports:
- "5080:5080"
volumes:
- openobserve:/data
restart: unless-stopped
profiles:
- observe
networks:
test-oxidicom:
otel-collector:
image: docker.io/otel/opentelemetry-collector:0.101.0
restart: unless-stopped
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml:ro
profiles:
- observe
networks:
test-oxidicom:
volumes:
orthanc:
openobserve:
cargo-target:
cargo-home:
minichris-files:
external: true
name: minichris-files
networks:
test-oxidicom:
minichris-local:
external: true
name: minichris-local