-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (124 loc) · 2.85 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.8'
services:
django:
build:
context: ./backend
dockerfile: Dockerfile.backend
working_dir: /app/backend
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- kafka
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- REDIS_HOST=redis
- KAFKA_BROKER=kafka:9092
networks:
- common_network
react:
build:
context: ./frontend
dockerfile: Dockerfile.frontend
working_dir: /app/frontend
volumes:
- ./frontend:/app/frontend
ports:
- "3000:3000"
networks:
- common_network
postgres:
image: postgis/postgis:latest
container_name: postgres
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- /mnt/c/Business/Databases/Data/sql/postgresql/16/main:/var/lib/postgresql/data
networks:
- common_network
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- common_network
zookeeper:
image: wurstmeister/zookeeper:latest
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
networks:
- common_network
kafka:
image: wurstmeister/kafka:latest
container_name: kafka
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- "9092:9092"
networks:
- common_network
osm-tile-server:
image: overv/openstreetmap-tile-server:latest
container_name: osm-tile-server
depends_on:
- postgres
environment:
UPDATES: "true"
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASS: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "80:80"
volumes:
- tiles_data:/var/lib/posttiles
networks:
- common_network
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- common_network
grafana:
image: grafana/grafana:latest
container_name: grafana
depends_on:
- prometheus
ports:
- "3001:3000"
networks:
- common_network
volumes:
postgres_data:
redis_data:
tiles_data:
networks:
common_network:
driver: bridge