-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
86 lines (80 loc) · 2.65 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
version: "3.7"
services:
timesketch-web:
container_name: timesketch-web
image: us-docker.pkg.dev/osdfir-registry/timesketch/timesketch:${TIMESKETCH_VERSION}
environment:
- NUM_WSGI_WORKERS=${NUM_WSGI_WORKERS}
restart: always
command: timesketch-web
volumes:
- ${TIMESKETCH_CONFIG_PATH}:/etc/timesketch/
- ${TIMESKETCH_UPLOAD_PATH}:/usr/share/timesketch/upload/
- ${TIMESKETCH_LOGS_PATH}:/var/log/timesketch/
# Temporary service while the V2 UI is in the testing phase.
# TODO: Remove when V2 is the default.
timesketch-web-legacy:
container_name: timesketch-web-legacy
image: us-docker.pkg.dev/osdfir-registry/timesketch/timesketch:${TIMESKETCH_VERSION}
environment:
- NUM_WSGI_WORKERS=${NUM_WSGI_WORKERS}
restart: always
command: timesketch-web-legacy
volumes:
- ./etc/timesketch:/etc/timesketch/
- ./upload:/usr/share/timesketch/upload/
- ./logs:/var/log/timesketch/
timesketch-worker:
container_name: timesketch-worker
image: us-docker.pkg.dev/osdfir-registry/timesketch/timesketch:${TIMESKETCH_VERSION}
environment:
- WORKER_LOG_LEVEL=${WORKER_LOG_LEVEL}
restart: always
command: timesketch-worker
volumes:
- ${TIMESKETCH_CONFIG_PATH}:/etc/timesketch/
- ${TIMESKETCH_UPLOAD_PATH}:/usr/share/timesketch/upload/
- ${TIMESKETCH_LOGS_PATH}:/var/log/timesketch/
opensearch:
container_name: opensearch
image: opensearchproject/opensearch:${OPENSEARCH_VERSION}
restart: always
environment:
- TAKE_FILE_OWNERSHIP=1
- discovery.type=single-node
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true" # TODO: Enable when we have migrated the python client to Opensearch as well.
- "OPENSEARCH_JAVA_OPTS=-Xms${OPENSEARCH_MEM_USE_GB}g -Xmx${OPENSEARCH_MEM_USE_GB}g"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ${OPENSEARCH_DATA_PATH}:/usr/share/opensearch/data/
postgres:
container_name: postgres
image: postgres:${POSTGRES_VERSION}
environment:
- POSTGRES_USER=timesketch
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
volumes:
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
redis:
container_name: redis
image: redis:${REDIS_VERSION}
command: "redis-server"
restart: always
nginx:
container_name: nginx
image: nginx:${NGINX_VERSION}
restart: always
ports:
- ${NGINX_HTTP_PORT}:80
- ${NGINX_HTTPS_PORT}:443
volumes:
- ${NGINX_CONFIG_PATH}:/etc/nginx/nginx.conf
- /opt/timesketch/ssl:/tssl