-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (75 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
82 lines (75 loc) · 1.6 KB
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
name: authMetodologyService
services:
methodologymain.api:
image: ${DOCKER_REGISTRY-}methodologymainapi
build:
context: .
dockerfile: MethodologyMain.API/Dockerfile
postgres:
container_name: auth_db
image: postgres:latest
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: authdb
POSTGRES_USER: admin
POSTGRES_PASSWORD: password123!
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d authdb"]
interval: 10s
timeout: 3s
retries: 3
networks:
- authNet
restart: unless-stopped
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5050:80"
depends_on:
postgres:
condition: service_healthy
networks:
- authNet
restart: unless-stopped
rabbitmq:
image: rabbitmq:management-alpine
container_name: rabbitmqForAuth
volumes:
- rabbit-data:/var/lib/rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
networks:
- authNet
depends_on:
postgres:
condition: service_healthy
redis:
image: redis
restart: always
volumes:
- redis-data:/data
ports:
- "6379:6379"
networks:
- authNet
depends_on:
postgres:
condition: service_healthy
networks:
authNet:
name: authNet
driver: bridge
volumes:
postgres-data:
rabbit-data:
redis-data:
grafana-data: