-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.debug.yml
148 lines (137 loc) · 3.6 KB
/
docker-compose.debug.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3.7'
services:
mercure-db:
image: postgres:latest
container_name: mercure-db
restart: always
ports:
- "5432:5432"
expose:
- 5432
environment:
- POSTGRES_DB=mercure
- POSTGRES_USER=mercure_user
- POSTGRES_PASSWORD=mercure_password
volumes:
- pgdata:/var/lib/postgresql/data
- pgconf:/etc/postgresql
- pglog:/var/log/postgresql
- ./mercure-db/sql:/docker-entrypoint-initdb.d/
networks:
- postgres-prometheus
mercure-cache:
container_name: mercure-cache
image: redis:latest
restart: always
ports:
- "6379:6379"
environment:
- REDIS_HOST_PASSWORD=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/data
mercure-pgadmin:
image: dpage/pgadmin4
container_name: mercure-pgadmin4
restart: always
depends_on:
- mercure-db
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: mercure
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./mercure-db/servers.json:/pgadmin4/servers.json
- ./mercure-db/pgpass:/pgpass
mercure-api:
image: mercure-api:dev
container_name: mercure-api
depends_on:
- mercure-db
- mercure-cache
build:
context: mercure-api
dockerfile: ./Dockerfile
ports:
- 5000:5000
environment:
- DOTNET_WATCH_RESTART_ON_RUDE_EDIT=1
- DOTNET_WATCH_SUPPRESS_EMOJIS=1
- ASPNETCORE_ENVIRONMENT=Development
- RUN_IN_DOCKER=true
volumes:
- ./mercure-api:/app
command: dotnet watch run --project mercure.API
mercure-web:
image: mercure-web:dev
container_name: mercure-web
restart: unless-stopped
build:
context: mercure-web
dockerfile: ./Dockerfile
environment:
NODE_ENV: development
volumes:
- ./mercure-web:/usr/src/app
- /usr/src/app/node_modules
ports:
- 4200:4200
- 49153:49153
mercure-grafana:
container_name: mercure-grafana
restart: unless-stopped
depends_on:
- mercure-prometheus
- mercure-cache
- mercure-postgres-exporter
build:
context: mercure-grafana
dockerfile: ./Dockerfile
ports:
- 30091:3000
environment:
- GF_DEFAULT_INSTANCE_NAME=mercure-dashboard
- GF_SECURITY_ADMIN_USER=mercure
- GF_SECURITY_ADMIN_PASSWORD=mercure_password
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_INSTALL_PLUGINS=redis-datasource
volumes:
- grafana-storage:/var/lib/grafana
mercure-prometheus:
image: ubuntu/prometheus
container_name: mercure-prometheus
restart: unless-stopped
ports:
- "30090:9090"
environment:
- TZ=UTC+2
volumes:
- ./mercure-grafana/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
mercure-postgres-exporter:
image: wrouesnel/postgres_exporter:latest
container_name: mercure-postgres-exporter
restart: unless-stopped
depends_on:
- mercure-db
- mercure-prometheus
ports:
- 9187:9187
environment:
- DATA_SOURCE_NAME=postgresql://mercure_user:[email protected]:5432/postgres?sslmode=disable
- DATA_SOURCE_USER=mercure_user
- DATA_SOURCE_PASS=mercure_password
networks:
- postgres-prometheus
volumes:
pgdata:
pgconf:
pglog:
pgadmin-data:
cache:
driver: local
grafana-storage:
driver: local
networks:
postgres-prometheus: