-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
72 lines (67 loc) · 1.54 KB
/
docker-compose.yaml
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
---
version: "3.9"
services:
backend:
container_name: backend
image: optinova:latest
# This user will be used by default in the container.
# When we want to run as root, change the following line
# user: "root:root"
user: "1001:1001"
build:
dockerfile: ./backend.Dockerfile
context: ./
target: base
working_dir: /code
command: sh -c "flask run -h 0.0.0.0 -p 5000"
environment:
- FLASK_DEBUG=true
- FLASK_APP=run_app
restart: on-failure
ports:
- 127.0.0.1:5000:5000
volumes:
# so can edit locally
- type: bind
source: .
target: /code
networks:
- ch_network
minio:
container_name: minio
image: minio/minio:RELEASE.2022-02-24T22-12-01Z
command: server /data --console-address ":9001"
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9001:9001
environment:
MINIO_ROOT_USER: minio # access key
MINIO_ROOT_PASSWORD: minioPassword # secret key
networks:
- ch_network
clickhouse:
image: clickhouse/clickhouse-server:24.3.6
volumes:
- ./data:/var/lib/clickhouse
- ./logs:/var/log/clickhouse-server
ports:
- "8123:8123"
- "9010:9000"
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- ch_network
grafana:
image: grafana/grafana-enterprise
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
networks:
- ch_network
networks:
ch_network:
driver: bridge