-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.4 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
services:
ticket-service:
build:
context: .
dockerfile: Dockerfile
container_name: ticket-service
ports:
- "5011:5011"
environment:
- SERVER_PORT=5011
- MONGODB_URI=mongodb://mongodb:27017
- MONGODB_DATABASE=ticket_db
- REDIS_HOST=redis
- REDIS_PORT=6379
- AUTH_URL=http://auth-service:5001
- AUTH_CLIENT_ID=ticket-service
- AUTH_CLIENT_SECRET=${AUTH_CLIENT_SECRET}
- NOTIFIER_URL=http://notifier-service:5003
- NOTIFIER_ENABLED=true
- LOG_LEVEL=info
- LOG_ENCODING=json
depends_on:
- mongodb
- redis
networks:
- minisource-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5011/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
mongodb:
image: mongo:7
container_name: ticket-mongodb
ports:
- "27018:27017"
volumes:
- ticket-mongodb-data:/data/db
networks:
- minisource-network
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: ticket-redis
ports:
- "6380:6379"
volumes:
- ticket-redis-data:/data
networks:
- minisource-network
restart: unless-stopped
volumes:
ticket-mongodb-data:
ticket-redis-data:
networks:
minisource-network:
external: true