-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocker-compose.yml
More file actions
49 lines (44 loc) · 900 Bytes
/
Docker-compose.yml
File metadata and controls
49 lines (44 loc) · 900 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
48
49
version: "3.9"
services:
notification-service:
build: .
container_name: notification-service
restart: always
ports:
- "8005:8005"
env_file: .env
depends_on:
- postgres
- rabbitmq
networks:
- ricash-net
postgres:
image: postgres:16
container_name: notification-db
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: notifications_db
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- ricash-net
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: ricash
RABBITMQ_DEFAULT_PASS: ricash123
networks:
- ricash-net
networks:
ricash-net:
external: true
volumes:
pgdata: