-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (64 loc) · 1.46 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
version: '3'
services:
semezana:
build: .
restart: always
depends_on:
- db
- nsqlookupd
- nsqd
ports:
- "8080:8080"
environment:
- DEBUG=false
- PORT=8080
- CORS_ALLOWED_ORIGINS="*"
- SECRET_KEY="something is cooking"
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_NAME=semezana
- DB_PASSWORD=postgres
- NSQ_ADDRESS=nsqd:4150
- NSQ_LOOKUP_ADDRESS=nsqlookupd:4161
- ENVIRONMENT=local
- OTEL_EXPORTER_JAEGER_AGENT_HOST=jaeger
- OTEL_EXPORTER_JAEGER_AGENT_PORT=6831
- OTEL_EXPORTER_JAEGER_ENDPOINT=http://jaeger:14268/api/traces
db:
image: postgres:14.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=semezana
ports:
- "5432:5432"
logging:
driver: "none"
nsqlookupd:
image: nsqio/nsq
command: /nsqlookupd
logging:
driver: "none"
nsqd:
image: nsqio/nsq
command: /nsqd --broadcast-address=nsqd --lookupd-tcp-address=nsqlookupd:4160
depends_on:
- nsqlookupd
logging:
driver: "none"
nsqadmin:
image: nsqio/nsq
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161
depends_on:
- nsqlookupd
ports:
- "4171:4171"
logging:
driver: "none"
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "6831:6831/udp"
- "14268:14268"