-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·85 lines (79 loc) · 2.42 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
version: '3'
services:
app:
image: marketplace
container_name: marketplace-container
build:
context: .
restart: on-failure
volumes:
- ./:/var/www/html/marketplace
ports:
- "5000:${FLASK_RUN_PORT}"
depends_on:
- rabbitmq
- db
db:
image: postgres
environment:
POSTGRES_DB: ${POSTGRES_DATABASE}
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./docker/data/pgdata:/var/lib/postgresql/data/pgdata
ports:
- "5435:5432"
rabbitmq:
container_name: app-rabbitmq
image: 'rabbitmq:3.7-management'
restart: unless-stopped
ports:
- 5630:5672
- 8090:15672
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
elasticsearch:
container_name: app-elastic
image: docker.elastic.co/elasticsearch/elasticsearch:8.4.1
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
redis:
image: redis:5.0
ports:
- "6379:6379"
volumes:
- ./dbdata/redis:/var/lib/redis
- ./etc/redis/redis.conf:/etc/redis/redis.conf
prometheus:
container_name: app-prometheus
image: prom/prometheus:v2.36.1
volumes:
- ./etc/prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "9999:9090"
grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
container_name: app-grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./etc/grafana/datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- ./etc/grafana/config.monitoring