-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
67 lines (61 loc) · 1.56 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.3'
services:
portainer:
image: portainer/portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/portainer_password:/tmp/portainer_password
ports:
- 9000:9000
- 8000:8000
command: --admin-password='$$2y$$05$$U6g.5sn3AAJRShJD2Yahh.QW.K9B2YdSj4.SuGZRlpo14W1My08E2'
# username:admin password: portainer
rabbitmq:
image: rabbitmq:3.7.15-management-alpine
restart: always
ports:
- 5672:5672
- 15672:15672
volumes:
- ./rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config
- ./rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
database:
image: postgres:latest
volumes:
- db-data:/var/lib/postgresql/data
restart: always
environment:
- ALLOW_IP_RANGE='0.0.0.0/0'
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=pass
ports:
- 5432:5432
legume-service:
image: legume-service:latest
build:
context: legume-service/
depends_on:
- rabbitmq
- database
- portainer
ports:
- 8080:8080
environment:
- QUARKUS_DATASOURCE_URL=jdbc:postgresql://database:5432/postgres
- ORG_ACME_CAMEL_SETUP_RABBITMQ_HOST=rabbitmq
hero-service:
image: hero-service:latest
build:
context: hero-service/
depends_on:
- rabbitmq
- database
- portainer
ports:
- 8081:8080
environment:
- QUARKUS_DATASOURCE_URL=jdbc:postgresql://database:5432/postgres
- ORG_ACME_CAMEL_SETUP_RABBITMQ_HOST=rabbitmq
volumes:
db-data:
driver: local