-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 871 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 871 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
services:
# shared db
shared_database:
image: postgres:14.22-trixie
restart: always
ports:
- "5435:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: postgres
TZ: Asia/Kolkata
PGTZ: Asia/Kolkata
volumes:
- postgres_data:/var/lib/postgresql/data
- ./infra/docker:/docker-entrypoint-initdb.d/
# rabbitmq
rabbitmq:
image: rabbitmq:4-management
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- ./infra/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
- ./infra/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
volumes:
postgres_data:
rabbitmq_data: