-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (71 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
78 lines (71 loc) · 1.52 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
version: "3.3"
services:
db:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: node_api_db
ports:
- "5400:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
node-network:
ipv4_address: 172.30.0.10
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5404:80"
depends_on:
- db
volumes:
- pgadmin-data:/var/lib/pgadmin
restart: always
networks:
node-network:
ipv4_address: 172.30.0.11
node-api:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NODE_ENV: development
DATABASE_URL: postgresql://postgres:postgres@db:5432/node_api_db
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- db
networks:
node-network:
ipv4_address: 172.30.0.12
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
ports:
- "3001:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- grafana-storage:/var/lib/grafana
networks:
node-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
volumes:
postgres-data:
pgadmin-data:
grafana-storage: