-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (96 loc) · 2.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
107 lines (96 loc) · 2.47 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
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.8"
services:
db:
image: postgres:15
container_name: vn_folk_db
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change_me}
POSTGRES_DB: ${POSTGRES_DB:-vn_folk}
ports:
- "5437:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
node-network:
ipv4_address: 172.30.0.10
pgadmin:
image: dpage/pgadmin4
container_name: vn_folk_pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@example.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-change_me}
ports:
- "5404:80"
depends_on:
- db
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
node-network:
ipv4_address: 172.30.0.11
node-api:
build:
context: .
dockerfile: Dockerfile
container_name: vn_folk_api
restart: always
ports:
- "3000:3000"
environment:
NODE_ENV: development
PORT: 3000
DB_USER: ${DB_USER:-postgres}
DB_HOST: db
DB_DATABASE: ${DB_DATABASE:-vn_folk}
DB_PASSWORD: ${DB_PASSWORD:-change_me}
DB_PORT: ${DB_PORT:-5432}
JWT_SECRET: ${JWT_SECRET:-change_me}
JWT_EXPIRATION_TIME: ${JWT_EXPIRATION_TIME:-86400}
EMAIL_USER: ${EMAIL_USER:-noreply@example.com}
EMAIL_PASS: ${EMAIL_PASS:-change_me}
DATABASE_URL: ${DATABASE_URL:-postgresql://postgres:change_me@db:5432/vn_folk}
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- db
networks:
node-network:
ipv4_address: 172.30.0.12
prometheus:
image: prom/prometheus
container_name: vn_folk_prometheus
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
node-network:
ipv4_address: 172.30.0.13
grafana:
image: grafana/grafana
container_name: vn_folk_grafana
restart: always
ports:
- "3001:3000"
environment:
GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD:-change_me}
volumes:
- grafana-storage:/var/lib/grafana
networks:
node-network:
ipv4_address: 172.30.0.14
networks:
node-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
volumes:
postgres-data:
pgadmin-data:
grafana-storage: