-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.38 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
---
version: '3'
services:
plm:
build: .
image: product-listings-manager
user: ${DEV_USER_ID:-1000}
working_dir: /src
volumes:
- ./:/src:ro,z
- ./docker/koji.conf.d:/etc/koji.conf.d:ro,z
ports:
- 127.0.0.1:8080:5000
healthcheck:
test: >-
/src/docker/docker-entrypoint.sh python -c 'import requests;
requests.get("http://127.0.0.1:5000/api/v1.0/health").raise_for_status();'
interval: 5s
timeout: 5s
retries: 10
environment:
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces
- OTEL_EXPORTER_SERVICE_NAME=product-listings-manager
- PLM_KOJI_CONFIG_PROFILE=fedora
- SQLALCHEMY_DATABASE_URI=postgresql://plm:plm@plm-db:5433/plm
depends_on:
- plm-db
- jaeger
plm-db:
image: postgres:17.2-alpine@sha256:0bcc5bbbb2aa9c9b4c6505845918c7eb55d783cf5c1f434fac33012579fb149d
volumes:
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro,z
restart: always
environment:
- POSTGRES_USER=plm
- POSTGRES_PASSWORD=plm
- POSTGRES_DB=plm
- PGPORT=5433
- POSTGRES_INITDB_ARGS=--auth=ident --auth=trust
jaeger:
image: quay.io/jaegertracing/all-in-one:1.60@sha256:4fd2d70fa347d6a47e79fcb06b1c177e6079f92cba88b083153d56263082135e
ports:
- 127.0.0.1:16686:16686
networks:
default:
driver: bridge