-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1015 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1015 Bytes
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
services:
app:
depends_on:
db:
condition: service_started
mq:
condition: service_healthy
build: .
ports:
- 8001:8001
environment:
HKW_DATABASE_URL: 'postgres://postgres:2ba3-nyannyan@db/postgres'
HKW_MESSAGE_QUEUE_URL: 'amqp://hkw-mq:5672'
HKW_BIND_IP: 0.0.0.0
HKW_HTTP_BIND_PORT: 8001
HKW_UDP_BIND_PORT: 8002
HKW_PEER_ANNOUNCE_INTERVAL: 60
HKW_PEER_ACTIVITY_TIMEOUT: 120
HKW_ONLY_ALLOWED_INFO_HASHES: false
HKW_ENABLE_ADMIN_API: false
env_file:
- '.env'
db:
image: postgres:15-alpine
environment:
'POSTGRES_PASSWORD': '2ba3-nyannyan'
volumes:
- pg-data:/var/lib/postgresql/data
mq:
image: rabbitmq:3-alpine
hostname: hkw-mq
volumes:
- mq-data:/var/lib/rabbitmq
ports:
- '5672:5672'
healthcheck:
test: 'rabbitmq-diagnostics -q ping'
interval: 15s
timeout: 5s
retries: 5
volumes:
pg-data:
mq-data: