|
1 | 1 | version: '3' |
| 2 | + |
| 3 | +# |
| 4 | +# docker-compose.yaml |
| 5 | +# Simple compose file for running the Python services in Docker along with other containers comprising the |
| 6 | +# KillrVideo. |
| 7 | +# For more complex configuration options including metrics, external volumes, OpsCenter, |
| 8 | +# etc., see https://github.com/KillrVideo/killrvideo-docker-common |
| 9 | +# |
| 10 | +# Note: the default configuration here uses the LATEST version of the killrvideo-python |
| 11 | +# Docker image, which can be built using scripts/docker_build.sh. |
| 12 | +# |
| 13 | + |
2 | 14 | services: |
3 | 15 |
|
4 | | - # ---------------------------------- |
| 16 | + web: # Web Interface |
| 17 | + image: killrvideo/killrvideo-web:3.0.1 |
| 18 | + ports: |
| 19 | + - "3000:3000" # Exposes port to be available externally |
| 20 | + depends_on: |
| 21 | + - backend # Needs Backend to be running |
| 22 | + environment: |
| 23 | + KILLRVIDEO_LOGGING_LEVEL: debug # More logging |
| 24 | + |
| 25 | + # Service implementation - use docker-compose-backend-external.yaml if running services in IDE |
| 26 | + backend: # KillrVideo Backend |
| 27 | + image: killrvideo/killrvideo-java |
| 28 | + ports: |
| 29 | + - "50101:50101" # Exposes port to be available. Kompose tool needs that to create a k8s service and make backend available for other services. |
| 30 | + depends_on: |
| 31 | + - dse # Needs DSE to be running |
| 32 | + environment: |
| 33 | + KILLRVIDEO_LOGGING_LEVEL: debug # More logging |
| 34 | + KILLRVIDEO_DSE_CONTACT_POINTS: dse |
| 35 | + |
| 36 | + # Datastax Studio provides convenient web interface to work directly with DataStax Enterprise |
| 37 | + studio: |
| 38 | + image: datastax/dse-studio:6.7.0 |
| 39 | + ports: |
| 40 | + - "9091:9091" # Exposes port to be available externally |
| 41 | + depends_on: |
| 42 | + - dse # Needs DSE to be running |
| 43 | + environment: |
| 44 | + DS_LICENSE: accept |
| 45 | + |
5 | 46 | # DataStax Enterprise Database |
6 | | - # ---------------------------------- |
7 | 47 | dse: |
8 | | - image: datastax/dse-server:6.7.2 |
| 48 | + image: datastax/dse-server:6.7.4 |
9 | 49 | command: [ -s -g ] # Run with Search and Graph capabilities enabled |
10 | | - ports: # Exposes ports to be available. Kompose tool needs that to create a k8s service and make backend available for other services. |
| 50 | + ports: # Exposes ports to be available. |
11 | 51 | - "9042:9042" # Exposes DSE port |
12 | 52 | - "8983:8983" # Exposes DSE Search port |
13 | 53 | - "8182:8182" # Exposes DSE Graph port |
14 | 54 | environment: |
15 | 55 | DS_LICENSE: accept # Accept licence on start |
16 | | - DC: DC1 |
17 | | - JVM_EXTRA_OPTS: -Xmx1g -Xms1g |
18 | | - NUM_TOKENS: 32 |
19 | 56 | cap_add: |
20 | 57 | - IPC_LOCK # Allow DSE to lock memory with mlock |
21 | | - depends_on: |
22 | | - # - opscenter |
23 | 58 | ulimits: |
24 | 59 | memlock: -1 |
25 | | - |
26 | | - # ---------------------------------- |
27 | | - # DataStax Studio |
28 | | - # ---------------------------------- |
29 | | - studio: |
30 | | - image: datastax/dse-studio:6.7.0 |
31 | | - ports: |
32 | | - - "9091:9091" |
33 | | - depends_on: |
34 | | - - dse |
35 | | - environment: |
36 | | - SERVICE_9091_NAME: studio |
37 | | - DS_LICENSE: accept |
38 | | - volumes: |
39 | | - - "/tmp/docker/studio-notebooks:/var/lib/datastax-studio" |
40 | | - |
41 | | - # ---------------------------------- |
42 | | - # OpsCenter |
43 | | - # ---------------------------------- |
44 | | - #opscenter: |
45 | | - # image: "datastax/dse-opscenter:6.7.0" |
46 | | - # ports: |
47 | | - # - 8888:8888 |
48 | | - # environment: |
49 | | - # - DS_LICENSE=accept |
50 | | - |
51 | | - # ---------------------------------- |
52 | | - # Killrvideo |
53 | | - # ---------------------------------- |
54 | | - |
55 | | - # ---------------------------------- |
56 | | - # Web Interface (No ETCD) |
57 | | - # ---------------------------------- |
58 | | - web: |
59 | | - image: killrvideo/killrvideo-web:3.0.0 |
60 | | - ports: |
61 | | - - "3000:3000" # Exposes port to be available externally |
62 | | - depends_on: |
63 | | - - backend # Needs Backend to be running |
64 | | - environment: |
65 | | - KILLRVIDEO_LOGGING_LEVEL: debug # More logging |
66 | | - labels: |
67 | | - kompose.service.type: nodeport # Adds a label for Kompose to expose service externally |
68 | 60 |
|
69 | | - # ---------------------------------- |
70 | | - # Backend exposing GRPC services |
71 | | - # ---------------------------------- |
72 | | - backend: |
73 | | - # JAVA IMPLEMENTATION |
74 | | - image: killrvideo/killrvideo-java:latest |
75 | | - # Exposes port to be available. Kompose tool needs that to create a k8s service and make backend available for other services. |
76 | | - ports: |
77 | | - - "50101:50101" |
78 | | - depends_on: |
79 | | - - dse |
80 | | - environment: |
81 | | - KILLRVIDEO_LOGGING_LEVEL: debug |
82 | | - KILLRVIDEO_DSE_USERNAME: $KILLRVIDEO_DSE_USERNAME |
83 | | - KILLRVIDEO_DSE_PASSWORD: $KILLRVIDEO_DSE_PASSWORD |
84 | | - KILLRVIDEO_ENABLE_SSL: $KILLRVIDEO_ENABLE_SSL |
85 | | - volumes: |
86 | | - - "../../cassandra.cert:/usr/src/app/cassandra.cert" |
87 | | - |
88 | | - dse-config: # One-Time Bootstrap Container, configures DSE to have required keyspaces etc. |
| 61 | + # One-Time Bootstrap Container, configures DSE to have required keyspaces etc. |
| 62 | + dse-config: |
89 | 63 | image: killrvideo/killrvideo-dse-config:3.0.0 |
90 | | - environment: |
91 | | - KILLRVIDEO_SERVICE_DISCOVERY_DISABLED: 'true' # Backward Compatibility Requirement |
92 | 64 | depends_on: |
93 | 65 | - dse # Needs DSE to be running |
94 | | - 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. |
95 | 66 |
|
96 | | - generator: |
97 | | - image: killrvideo/killrvideo-generator:3.0.0 |
| 67 | + # Sample Data Generator, imitates behaviour of users on the killrVideo website. |
| 68 | + # Adds comments and rates videos, upload new videos and so on. |
| 69 | + generator: |
| 70 | + image: killrvideo/killrvideo-generator:3.0.1 |
98 | 71 | depends_on: |
99 | | - - backend |
| 72 | + - backend # Needs Backend to be running |
100 | 73 | environment: |
101 | | - KILLRVIDEO_LOGGING_LEVEL: debug |
102 | | - |
| 74 | + KILLRVIDEO_LOGGING_LEVEL: debug # More logging |
| 75 | + |
0 commit comments