-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 938 Bytes
/
docker-compose.yml
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
version: "2.1"
services:
bot:
image: egormit/happy-birthday-bot
container_name: bot
depends_on:
- db
- rabbitmq
environment:
- DATABASE_HOST=bot_db
- DATABASE_PORT=5432
- DATABASE_USERNAME=admin
- DATABASE_PASSWORD=admin
- RABBIT_HOST=rabbitmq
- RABBIT_PORT=15672
networks:
- bot-network
ports:
- "8081:8081"
restart: always
db:
image: postgres
container_name: bot_db
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=bot
command: postgres -p 5432
networks:
- bot-network
ports:
- "5432:5432"
restart: always
rabbitmq:
image: rabbitmq:3.10.7-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- bot-network
restart: always
networks:
bot-network:
name: bot-network
external: true