This repository has been archived by the owner on Dec 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-noetcd.yml
114 lines (102 loc) · 3.73 KB
/
docker-compose-noetcd.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
version: '3'
services:
# ----------------------------------
# DataStax Enterprise Database
# ----------------------------------
dse:
image: datastax/dse-server:6.7.2
command: [ -s -g ] # Run with Search and Graph capabilities enabled
ports: # Exposes ports to be available. Kompose tool needs that to create a k8s service and make backend available for other services.
- "9042:9042" # Exposes DSE port
- "8983:8983" # Exposes DSE Search port
- "8182:8182" # Exposes DSE Graph port
environment:
DS_LICENSE: accept # Accept licence on start
DC: DC1
JVM_EXTRA_OPTS: -Xmx1g -Xms1g
NUM_TOKENS: 32
cap_add:
- IPC_LOCK # Allow DSE to lock memory with mlock
depends_on:
- opscenter
ulimits:
memlock: -1
# ----------------------------------
# DataStax Studio
# ----------------------------------
studio:
image: datastax/dse-studio:6.7.0
ports:
# The Web UI exposed to our host
- "9091:9091"
depends_on:
- dse
environment:
SERVICE_9091_NAME: studio
DS_LICENSE: accept
volumes:
- "/tmp/docker/studio-notebooks:/var/lib/datastax-studio"
# ----------------------------------
# OpsCenter
# ----------------------------------
opscenter:
image: "datastax/dse-opscenter:6.7.0"
ports:
- 8888:8888
environment:
- DS_LICENSE=accept
# ----------------------------------
# Killrvideo
# ----------------------------------
# ----------------------------------
# Web Interface (No ETCD)
# ----------------------------------
web:
image: killrvideo/killrvideo-web:3.0.0-rc1
ports:
- "3000:3000" # Exposes port to be available externally
depends_on:
- backend # Needs Backend to be running
environment:
KILLRVIDEO_LOGGING_LEVEL: debug # More logging
labels:
kompose.service.type: nodeport # Adds a label for Kompose to expose service externally
# ----------------------------------
# Backend exposing GRPC services
# ----------------------------------
backend-java:
image: killrvideo/killrvideo-java:latest
depends_on:
- dse # Needs DSE to be running
ports:
- "8899:8899"
environment:
KILLRVIDEO_DSE_USERNAME: $KILLRVIDEO_DSE_USERNAME
KILLRVIDEO_DSE_PASSWORD: $KILLRVIDEO_DSE_PASSWORD
KILLRVIDEO_DSE_CONTACTPOINTS: §KILLRVIDEO_DSE_CONTACTPOINTS
KILLRVIDEO_ENABLE_SSL: $KILLRVIDEO_ENABLE_SSL
KILLRVIDEO_SSL_CERTIFICATE: $KILLRVIDEO_SSL_CERTIFICATE
KILLRVIDEO_KAFKA_BROKERS: §KILLRVIDEO_KAFKA_BROKERS
#backend-nodejs:
# image: killrvideo/killrvideo-nodejs:3.0.0-rc2
# ports:
# - "50101:50101"
# Exposes port to be available. Kompose tool needs that to create a k8s service and make backend available for other services.
# depends_on:
# - dse # Needs DSE to be running
# environment:
# KILLRVIDEO_LOGGING_LEVEL: debug # More logging
# One-Time Bootstrap Container, configures DSE to have required keyspaces etc.
dse-config:
image: killrvideo/killrvideo-dse-config:3.0.0-rc1
environment:
KILLRVIDEO_SERVICE_DISCOVERY_DISABLED: 'true' # Backward Compatibility Requirement
depends_on:
- dse # Needs DSE to be running
restart: on-failure # Kompose needs that to create dse-config as a pod, not a deployment. DSE-Config deployment is not needed as we run it only once.
generator: # Sample Data Generator, imitates behaviour of users on the killrVideo website. Adds comments and rates videos, upload new videos and so on.
image: killrvideo/killrvideo-generator:3.0.0-rc4
depends_on:
- backend # Needs Backend to be running
environment:
KILLRVIDEO_LOGGING_LEVEL: debug # More logging