-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 1.58 KB
/
docker-compose.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
version: "3.8"
networks:
internal:
driver: overlay
volumes:
grafana_data:
prometheus_data:
services:
proxy:
image: haproxy:2.4-alpine
restart: unless-stopped
ports:
- target: 80
published: 80
protocol: tcp
mode: host
volumes:
- ./docker/proxy:/usr/local/etc/haproxy:ro
environment:
- ADMIN_PASSWORD=${ADMIN_PASSWORD:?}
- API_PORT=${API_PORT:?}
- CLIENT_PORT=${CLIENT_PORT:?}
- DOMAIN=${DOMAIN:?}
networks:
- internal
client:
image: ghcr.io/kostaspt/domane-client:latest
build:
context: ./client
args:
- DOMAIN=${DOMAIN:?}
restart: unless-stopped
environment:
- CLIENT_PORT=${CLIENT_PORT:?}
- DOMAIN=${DOMAIN:?}
- NODE_ENV=production
networks:
- internal
api:
image: ghcr.io/kostaspt/domane-api:latest
build: ./api
restart: unless-stopped
environment:
- API_PORT=${API_PORT:?}
- DOMAIN=${DOMAIN:?}
networks:
- internal
prometheus:
image: prom/prometheus:v2.27.1
restart: unless-stopped
volumes:
- prometheus_data:/prometheus
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- internal
grafana:
image: grafana/grafana:8.0.1
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana_data:/var/lib/grafana
- ./docker/grafana/custom.ini:/etc/grafana/grafana.ini
networks:
- internal