-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 812 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 812 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
version: '3.0'
services:
rabbitmq:
container_name: rabbitmq
hostname: rabbitmq
image: rabbitmq:3-management
ports:
- "7100:15672"
- "7101:5672"
volumes:
- rabbitmq:/rabbitmq
postgres:
container_name: postgres-service
image: postgres:13.3
environment:
POSTGRES_DB: "test"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "m12345"
ports:
- "5432:5432"
some-service1:
restart: always
depends_on:
- rabbitmq
build:
context: .
dockerfile: someservice1/Dockerfile
ports:
- "8081:80"
some-service2:
restart: always
depends_on:
- rabbitmq
- postgres
build:
context: .
dockerfile: someservice2/Dockerfile
ports:
- "8082:80"
volumes:
rabbitmq: