-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
111 lines (111 loc) · 2.18 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
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
version: "3"
volumes:
dbbackups:
postgis-data:
redis:
services:
sessions-service:
image: sessions-service
expose:
- "8081"
- "8082"
- "8080"
ports:
- "8081:8081"
networks:
- default
volumes:
- $PWD/media:/app/media
depends_on:
- redis
profiles-service:
image: profiles-service
expose:
- "8081"
- "8082"
- "8080"
ports:
- "8082:8082"
networks:
- default
volumes:
- $PWD/media:/app/media
depends_on:
- redis
- music-bd
- sessions-service
music-service:
image: music-service
expose:
- "8081"
- "8082"
- "8080"
- "8888"
ports:
- "8888:8888"
networks:
- default
volumes:
- $PWD/media:/app/media
depends_on:
- redis
- music-bd
- sessions-service
redis:
image: "redis:alpine"
expose:
- "6379"
ports:
- "6379:6379"
volumes:
- redis:/data
music-bd:
image: kartoza/postgis:12.0
expose:
- "5432"
volumes:
- ./scripts/music_db.sql:/docker-entrypoint-initdb.d/init.sql
- postgis-data:/var/lib/postgresql
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=andrewkireev
- POSTGRES_DB=music_service_docker
ports:
- "5432:5432"
restart: on-failure
healthcheck:
test: "exit 0"
# prometheus:
# image: prom/prometheus
# ports:
# - "9090:9090"
# volumes:
# - "./prometheus:/etc/prometheus"
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# expose:
# - "9090"
# grafana:
# image: grafana/grafana
# user: "grafana"
# depends_on:
# - prometheus
# ports:
# - 3000:3000
# expose:
# - "3000"
# node_exporter:
# image: quay.io/prometheus/node-exporter
# container_name: node_exporter
# user: root
# privileged: true
# volumes:
# - /proc:/host/proc:ro
# - /sys:/host/sys:ro
# - /:/rootfs:ro
# command:
# - '--path.procfs=/host/proc'
# - '--path.sysfs=/host/sys'
# - '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
# expose:
# - "9100"