-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 1.67 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
68
69
70
version: "3.0"
services:
cadeira-livre-db:
image: postgres:11
container_name: cadeira-livre-db
restart: always
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
- POSTGRES_DB=cadeira-livre
networks:
- cadeira-livre-network
ports:
- '5432:5432'
cadeira-livre-api:
build: './'
container_name: cadeira-livre-api
ports:
- '8095:8095'
networks:
- cadeira-livre-network
depends_on:
- cadeira-livre-db
- cadeira-livre-rabbit
- cadeira-livre-redis
environment:
- SPRING_PROFILES_ACTIVE=container
- DATABASE_HOST=cadeira-livre-db
- DATABASE_PORT=5432
- DATABASE_NAME=cadeira-livre
- DATABASE_USER=admin
- DATABASE_PASSWORD=admin
- RABBIT_MQ_HOST=cadeira-livre-rabbit
- RABBIT_MQ_USER=admin
- RABBIT_MQ_PASSWORD=admin
- RABBIT_MQ_PORT=5672
- REDIS_HOST=cadeira-livre-redis
- REDIS_PORT=6379
- JWT_SECRET=Y2FkZWlyYS1saXZyZS11c3VhcmlvLWFwaS1kb2NrZXI=
cadeira-livre-rabbit:
image: rabbitmq:3-management
container_name: cadeira-livre-rabbit
hostname: cadeira-livre-rabbit
networks:
- cadeira-livre-network
ports:
- '5672:5672'
- '25676:25676'
- '8082:15672'
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
- RABBITMQ_DEFAULT_VHOST=cadeira_livre_rabbit_host
cadeira-livre-redis:
image: redis
container_name: cadeira-livre-redis
networks:
- cadeira-livre-network
command: "redis-server"
ports:
- '6379:6379'
environment:
- REDIS_REPLICATION_MODE=master
networks:
cadeira-livre-network: