-
Notifications
You must be signed in to change notification settings - Fork 91
/
docker-compose.override.yml
107 lines (100 loc) · 2.52 KB
/
docker-compose.override.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3.4'
services:
webapplicationentrypoint:
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "8877:80" # habilitado visualização no browser
restart: always
depends_on:
rabbitmq:
condition: service_healthy
grafana:
condition: service_started
postgres:
condition: service_healthy
rabbitmq:
container_name: RabbitMQ
hostname: rabbitmq
build:
context: ./infra/rabbitmq
volumes:
- rabbitmq_data:/var/lib/rabbitmq/mnesia
ports:
- "15672:15672" #management # habilitado visualização no browser
#- "15692:15692" #prometheus # desnecessário
- "5672:5672" #amqp # desnecessário
healthcheck:
test:
[
"CMD-SHELL",
"curl -I -s -L http://localhost:15672 || exit 1"
]
interval: 30s
timeout: 20s
retries: 5
networks:
- walkthrough-net
# environment:
# RABBITMQ_DEFAULT_USER: WalkthroughUser
# RABBITMQ_DEFAULT_PASS: WalkthroughPassword
# RABBITMQ_DEFAULT_VHOST: Walkthrough
grafana:
image: grafana/grafana:8.0.5-ubuntu
container_name: grafana
environment: { "TZ": "America/Sao_Paulo" }
ports:
- "3000:3000" # habilitado visualização no browser
volumes:
- ./infra/grafana/:/var/lib/grafana
networks:
- walkthrough-net
postgres:
image: postgres:14.4
container_name: postgres
ports:
- 5432:5432
environment:
{
"POSTGRES_DB": "Walkthrough",
"POSTGRES_USER": "WalkthroughUser",
"POSTGRES_PASSWORD": "WalkthroughPass",
"TZ": "America/Sao_Paulo"
}
healthcheck:
test:
[
"CMD",
"pg_isready",
"--dbname=Walkthrough",
"--username=WalkthroughUser"
]
interval: 5s
timeout: 5s
retries: 5
networks:
- walkthrough-net
volumes:
- "postgres_data:/var/lib/postgresql/data"
- ./infra/postgres/:/docker-entrypoint-initdb.d
pgadmin4:
image: dpage/pgadmin4:6.5
container_name: pgadmin
hostname: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: gago@gago.io
PGADMIN_DEFAULT_PASSWORD: WalkthroughPass
volumes:
- "pgadmin_data:/var/lib/pgadmin/"
- "./infra/pgadmin/servers.json:/pgadmin4/servers.json"
ports:
- "82:80"
networks:
- walkthrough-net
depends_on:
postgres:
condition: service_healthy
volumes:
rabbitmq_data:
postgres_data:
pgadmin_data: