-
Notifications
You must be signed in to change notification settings - Fork 13
/
podman-compose.yml
159 lines (148 loc) · 4.33 KB
/
podman-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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3.6"
networks:
altinntestlocal_network:
external: false
services:
localtest_loadbalancer:
container_name: localtest-loadbalancer
image: localtest-loadbalancer:latest
build:
context: ./loadbalancer
args:
NGINX_VERSION: 1.25.3
restart: always
networks:
altinntestlocal_network:
aliases:
- ${TEST_DOMAIN:-local.altinn.cloud}
ports:
- "${ALTINN3LOCAL_PORT:-8000}:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
- TEST_DOMAIN=${TEST_DOMAIN:-local.altinn.cloud}
- HOST_DOMAIN=host.docker.internal
- INTERNAL_DOMAIN=host.containers.internal
- ALTINN3LOCAL_PORT=${ALTINN3LOCAL_PORT:-8000}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.conf
volumes:
- ./loadbalancer/templates/:/etc/nginx/templates/:ro,z
- ./loadbalancer/www/:/www/:ro,z
altinn_platform_pdf:
container_name: altinn-pdf
platform: linux/amd64
image: ghcr.io/altinn/altinn-pdf:latest
restart: always
networks:
- altinntestlocal_network
ports:
- "5070:5070"
altinn_pdf_service:
container_name: altinn-pdf-service
image: browserless/chrome:1-puppeteer-21.3.6
restart: always
networks:
- altinntestlocal_network
ports:
- "5300:3000"
altinn_localtest:
container_name: localtest
image: localtest:latest
restart: always
networks:
- altinntestlocal_network
ports:
- "5101:5101"
build:
context: .
environment:
- DOTNET_ENVIRONMENT=Podman
- ASPNETCORE_URLS=http://*:5101/
- GeneralSettings__BaseUrl=http://${TEST_DOMAIN:-local.altinn.cloud}:${ALTINN3LOCAL_PORT:-8000}
- GeneralSettings__HostName=${TEST_DOMAIN:-local.altinn.cloud}
volumes:
- ./testdata/:/testdata/:ro,z
- AltinnPlatformLocal:/AltinnPlatformLocal/:rw
monitoring_otel_collector:
container_name: monitoring_otel_collector
image: otel/opentelemetry-collector-contrib:0.98.0
restart: always
networks:
- altinntestlocal_network
command:
- --config=/etc/otel-collector.yaml
volumes:
- ./infra/otel-collector.yaml:/etc/otel-collector.yaml
ports:
- "4317:4317" # OTLP gRPC receiver
profiles: ["monitoring"]
depends_on:
- monitoring_mimir
- monitoring_tempo
- monitoring_loki
monitoring_tempo:
container_name: monitoring_tempo
image: grafana/tempo:2.4.1
restart: always
networks:
- altinntestlocal_network
command:
- -config.file=/etc/tempo.yaml
- -log.level=error
volumes:
- ./infra/tempo.yaml:/etc/tempo.yaml
profiles: ["monitoring"]
monitoring_mimir:
container_name: monitoring_mimir
image: grafana/mimir:2.12.0
restart: always
networks:
- altinntestlocal_network
command:
- -config.file=/etc/mimir.yaml
- -target=all
- -log.level=error
volumes:
- ./infra/mimir.yaml:/etc/mimir.yaml
profiles: ["monitoring"]
monitoring_loki:
container_name: monitoring_loki
image: grafana/loki:3.0.0
restart: always
networks:
- altinntestlocal_network
command:
- -config.file=/etc/loki.yaml
- -target=all
- -log.level=error
volumes:
- ./infra/loki.yaml:/etc/loki.yaml
profiles: ["monitoring"]
monitoring_grafana:
container_name: monitoring_grafana
image: grafana/grafana:10.4.2
restart: always
networks:
- altinntestlocal_network
volumes:
- ./infra/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./infra/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./infra/grafana-dashboards:/var/lib/grafana/dashboards
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE="traceqlEditor traceToMetrics metricsSummary"
- GF_LOG_LEVEL=error
- GF_SERVER_DOMAIN=${TEST_DOMAIN:-local.altinn.cloud}
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana/
profiles: ["monitoring"]
depends_on:
- monitoring_otel_collector
- monitoring_mimir
- monitoring_tempo
- monitoring_loki
volumes:
AltinnPlatformLocal: