-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
65 lines (58 loc) · 1.38 KB
/
docker-compose.prod.yml
File metadata and controls
65 lines (58 loc) · 1.38 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
version: '3.8'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
networks:
- app-network
app:
build:
context: ../event-driven-integration-service
dockerfile: ../cloud-deployment-showcase/Dockerfile.prod
environment:
- DATABASE_URL=postgresql://username:password@db:5432/event_integration?schema=public
- REDIS_URL=redis://redis:6379
- STRIPE_WEBHOOK_SECRET=test_stripe_secret
- PAYPAL_WEBHOOK_SECRET=test_paypal_secret
- GITHUB_WEBHOOK_SECRET=test_github_secret
- OTEL_SERVICE_NAME=event-driven-integration-service
- JAEGER_ENDPOINT=http://jaeger:14268/api/traces
- NODE_ENV=production
- PORT=3001
depends_on:
- db
- redis
- jaeger
networks:
- app-network
db:
image: postgres:15
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: event_integration
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
redis:
image: redis:7-alpine
networks:
- app-network
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268:14268"
networks:
- app-network
volumes:
postgres_data:
networks:
app-network:
driver: bridge