-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
129 lines (122 loc) · 2.72 KB
/
docker-compose.yml
File metadata and controls
129 lines (122 loc) · 2.72 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3.9'
volumes:
redis_data: {}
app_data: {}
nginx_cfg: {}
nginx_certs: {}
grafana_data: {}
prometheus_cfg:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'prometheus'
networks:
wissance_ferrum_eth:
driver: bridge
ipam:
config:
- gateway: 10.50.40.1
subnet: 10.50.40.0/24
services:
redis:
container_name: wissance_ferrum_db
networks:
wissance_ferrum_eth:
ipv4_address: 10.50.40.2
hostname: redis
image: "redis/redis-stack:7.2.0-v2"
env_file:
- .env
restart: always
volumes:
- redis_data:/data
environment:
REDIS_ARGS: ${REDIS_ARGS}
ports:
- "6379:6379"
- "8001:8001"
expose:
- "6379"
- "8001"
ferrum:
container_name: wissance_ferrum_webapi
networks:
wissance_ferrum_eth:
ipv4_address: 10.50.40.3
aliases:
- ferrum.dev.local
hostname: ferrum
stdin_open: true
tty: true
env_file:
- .env
build:
context: .
dockerfile: Dockerfile
volumes:
- app_data:/data
- nginx_cfg:/nginx_cfg
environment:
VIRTUAL_HOST: ferrum.dev.local
WAIT_HOSTS: redis:6379
depends_on:
redis:
condition: service_started
ports:
- "8182:8182"
expose:
- "8182"
nginx-proxy:
container_name: wissance_reverse_proxy
image: nginxproxy/nginx-proxy
networks:
wissance_ferrum_eth:
ipv4_address: 10.50.40.4
ports:
- '80:80'
extra_hosts:
- ferrum.dev.local:10.50.40.3
depends_on:
- ferrum
volumes:
- nginx_cfg:/etc/nginx/
- nginx_certs:/etc/ssl/certs
- '/var/run/docker.sock:/tmp/docker.sock:ro'
prometheus:
image: prom/prometheus:latest
container_name: wissance_ferrum_prometheus
depends_on:
ferrum:
condition: service_started
volumes:
- prometheus_cfg:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- "9090:9090"
networks:
wissance_ferrum_eth:
ipv4_address: 10.50.40.10
aliases:
- prometheus.dev.local
hostname: prometheus
grafana:
image: grafana/grafana-oss:latest
container_name: wissance_ferrum_grafana
volumes:
# This maps the internal Grafana data directory to a named Docker volume
- grafana_data:/var/lib/grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
networks:
wissance_ferrum_eth:
ipv4_address: 10.50.40.11
aliases:
- grafana.dev.local
hostname: grafana
depends_on:
- prometheus