-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
77 lines (73 loc) · 1.9 KB
/
Copy pathdocker-compose-test.yml
File metadata and controls
77 lines (73 loc) · 1.9 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
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.8"
services:
mongodb:
restart: unless-stopped
image: mongo:latest
environment:
- MONGO_INITDB_ROOT_USERNAME=
- MONGO_INITDB_ROOT_PASSWORD=
networks:
- socialbeats-network
ports:
- "0:27017"
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- mongo-data-test:/data/db
beats-interaction:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
environment:
- MONGOURL=mongodb://mongodb:27017/beats-interaction
- MONGOADMIN=
- MONGOPASS=
- NODE_ENV=development
- PORT=3002
- LOG_LEVEL=info
- JWT_SECRET=secret
- API_TITLE=beats-interaction microservice API
- API_DESCRIPTION=This is an OAS description of this beats-interaction microservice REST API
- KAFKA_CONNECTION_MAX_RETRIES=10
- KAFKA_CONNECTION_RETRY_DELAY=3000
- KAFKA_COOLDOWN=30000
- KAFKA_BROKER=kafka:9092
- ENABLE_KAFKA=false
- REDIS_HOST=redis
- REDIS_PORT=6039
- REDIS_CONNECTION_MAX_RETRIES=5
- REDIS_CONNECTION_RETRY_DELAY=2000
- REDIS_COOLDOWN=10000
- ENABLE_REDIS=false
- OPENROUTER_API_KEY=
- INTERNAL_API_KEY=
- AUTH_SERVICE_URL=http://localhost:3001
- SPACE_URL=
- SPACE_API_KEY=
- ENABLE_PRICING=false
depends_on:
mongodb:
condition: service_healthy
networks:
- socialbeats-network
ports:
- "0:${PORT}"
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3002/health || exit 1"]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
volumes:
- ./:/app:cached
- /app/node_modules
command: node main.js
volumes:
mongo-data-test:
networks:
socialbeats-network:
driver: bridge