-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 1002 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
version: '3.8'
networks:
backend:
services:
postgres:
container_name: postgres_container
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: "filter"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "qwerty"
volumes:
- ./volumes/2. Init Database:/docker-entrypoint-initdb.d
- ./volumes/postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 20s
timeout: 5s
retries: 5
start_period: 10s
rabbitmq:
image: rabbitmq:3-management
restart: always
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=qwerty
volumes:
- ./volumes/rabbitmq:/var/lib/rabbitmq
ports:
- "15672:15672"
networks:
- backend