-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (59 loc) · 1.51 KB
/
docker-compose.yaml
File metadata and controls
63 lines (59 loc) · 1.51 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
version: '3.8'
services:
server:
build:
context: ./
dockerfile: Dockerfile
image: migration-analyser:latest
container_name: migration-analyser
environment:
- NETWORK=${NETWORK}
- DEX=${DEX}
- RABBITMQ_URL=amqp://user:password@rabbitmq:5672
- RPC_ENDPOINT=${RPC_ENDPOINT}
- RPC_WEBSOCKET_ENDPOINT=${RPC_WEBSOCKET_ENDPOINT}
- NEXT_PUBLIC_BASE_RPC_ENDPOINT=${NEXT_PUBLIC_BASE_RPC_ENDPOINT}
- NEXT_PUBLIC_BASE_RPC_WSS_ENDPOINT=${NEXT_PUBLIC_BASE_RPC_WSS_ENDPOINT}
- CHAT_ID=${CHAT_ID}
- BOT_TOKEN=${BOT_TOKEN}
- IS_LOCAL=${IS_LOCAL}
- IN_CONTAINER=true
ports:
- "3000:3000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:/app
# network_mode: "host"
restart: unless-stopped
tty: true
stdin_open: true
networks:
- app-network
depends_on:
rabbitmq:
condition: service_healthy
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management UI
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: unless-stopped
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
rabbitmq_data: