-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
84 lines (84 loc) · 2.39 KB
/
Copy pathcompose.yaml
File metadata and controls
84 lines (84 loc) · 2.39 KB
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
# 👇 Rename `.env-template` to `.env` before running this file
# Set the appropriate values once renamed
services:
codetogether-collab:
image: hub.edge.codetogether.com/releases/codetogether-collab:latest
container_name: codetogether-collab
env_file:
- .env
environment:
- CT_SERVER_URL=https://${COLLAB_FQDN}
- CT_INTEL_URL=http://codetogether-intel:1080
- CT_INTEL_SECRET=${INTEL_SECRET}
- CT_AV_ENABLED=false
- CT_AV_LAN_IP=auto
networks:
- codetogethernet
depends_on:
codetogether-intel:
condition: service_healthy
nginx:
image: nginx:latest
container_name: codetogether-nginx
env_file:
- .env
environment:
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
ports:
- "443:443"
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/templates/nginx.conf.template:ro
- ./nginx/ssl:/etc/nginx/ssl
- ./nginx/log:/var/log/nginx
networks:
- codetogethernet
depends_on:
codetogether-intel:
condition: service_healthy
codetogether-intel:
image: hub.edge.codetogether.com/releases/codetogether-intel:latest
container_name: codetogether-intel
env_file:
- .env
environment:
- CT_HQ_BASE_URL=https://${INTEL_FQDN}
networks:
- codetogethernet
volumes:
- ./cthq.properties:/opt/codetogether/runtime/cthq.properties:ro
ports:
- "1080:1080"
depends_on:
cassandra:
condition: service_healthy
healthcheck:
test: ["CMD", "grep", "-q", "CodeTogether Intel backend started", "/var/log/codetogether-runtime/server.log"]
start_period: 20s
interval: 10s
timeout: 10s
retries: 50
cassandra:
image: cassandra:latest
container_name: codetogether-cassandra
ports:
- 9042:9042
networks:
- codetogethernet
environment:
- HEAP_NEWSIZE=96M
- MAX_HEAP_SIZE=512M
volumes:
- ./cassandra-config.yaml:/etc/cassandra/cassandra.yaml
- ./cassandra-init.cql:/scripts/init.sql
- ./cassandra-startup.sh:/scripts/startup.sh
- ./data:/var/lib/cassandra
entrypoint: ["/bin/sh", "-c", "chmod +x /scripts/startup.sh && /scripts/startup.sh"]
healthcheck:
test: ["CMD", "test", "-f", "/tmp/cassandra-ready"]
start_period: 30s
interval: 10s
timeout: 10s
retries: 70
networks:
codetogethernet:
driver: bridge