-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (79 loc) · 2.1 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
version: '3.4'
services:
app:
build:
context: .
target: "${RALPH_IMAGE_BUILD_TARGET:-development}"
args:
DOCKER_USER: ${DOCKER_USER:-1000}
user: ${DOCKER_USER:-1000}
image: "${RALPH_IMAGE_NAME:-ralph}:${RALPH_IMAGE_TAG:-development}"
env_file:
- .env
ports:
- "${RALPH_RUNSERVER_PORT:-8100}:${RALPH_RUNSERVER_PORT:-8100}"
command:
- ralph
- "-v"
- DEBUG
- runserver
- "-b"
- "${RALPH_RUNSERVER_BACKEND:-es}"
volumes:
- .:/app
# -- backends
elasticsearch:
image: elasticsearch:8.1.0
environment:
bootstrap.memory_lock: true
discovery.type: single-node
xpack.security.enabled: "false"
ports:
- "9200:9200"
mem_limit: 2g
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: curl --fail http://localhost:9200/_cluster/health?wait_for_status=green || exit 1
interval: 1s
retries: 60
mongo:
image: mongo:5.0.9
ports:
- "27017:27017"
healthcheck:
test: mongosh --eval 'db.runCommand("ping").ok' localhost:27017/test --quiet
interval: 1s
retries: 60
clickhouse:
image: clickhouse/clickhouse-server:23.1.1.3077-alpine
environment:
CLICKHOUSE_DB: xapi
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- 8123:8123
- 9000:9000
# ClickHouse needs to maintain a lot of open files, so they
# suggest running the container with increased limits:
# https://hub.docker.com/r/clickhouse/clickhouse-server/#!
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
interval: 1s
retries: 60
swift:
image: kklopfenstein/openstack-swift-keystone-docker
ports:
- "49177:8080"
- "49178:35357"
environment:
KS_SWIFT_PUBLIC_URL: http://127.0.0.1:49177
healthcheck:
test: curl -s http://127.0.0.1:35357 || exit 1
interval: 1s
retries: 60