-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 971 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
50
51
52
53
54
version: '3.1'
services:
core:
container_name: car-api-core
# restart: on-failure
image: car-api:latest
ports:
- 8080:8080
depends_on:
- db
- rabbitmq
environment:
SPRING_PROFILES_ACTIVE: local
networks:
- localstack
db:
container_name: car-api-postgres
image: postgres:alpine3.14
ports:
- 5432:5432
environment:
POSTGRES_USER: 123456789
POSTGRES_PASSWORD: 123456789
networks:
- localstack
adminer:
container_name: car-api-admin
image: adminer
ports:
- 9000:8080
networks:
- localstack
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: car-api-rabbitmq
ports:
- 5672:5672
- 15672:15672
networks:
- localstack
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
networks:
localstack:
driver: bridge