-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·86 lines (80 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
executable file
·86 lines (80 loc) · 1.76 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
85
86
networks:
db:
redis:
services:
scylladb:
image: scylladb/scylla:6.2.3
container_name: scylladb
networks:
db:
restart: always
volumes:
- scylla-data:/var/lib/scylla
healthcheck:
test: ["CMD", "cqlsh", "-e", "SELECT now() FROM system.local;"]
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:7.4.1
container_name: redis
networks:
redis:
restart: always
volumes:
- redis-data:/data
server:
build:
dockerfile: ./Dockerfile
context: ./Server
container_name: incognitobin_server
environment:
MAX_TITLE_LENGTH: 64
MAX_CONTENT_KB: 10000
MAX_SYNTAX_LENGTH: 64
MIN_PASTE_DURATION: 60
MAX_PASTE_DURATION: 31556952
TOKEN_SIZE: 150
SCYLLA_HOST: scylladb
REDIS_HOST: redis://redis/
RUST_BACKTRACE: $RUST_BACKTRACE
ALLOWED_URLS: $ALLOWED_URLS
networks:
db:
redis:
depends_on:
scylladb:
condition: service_healthy
redis:
condition: service_started
restart: always
ports:
- 127.0.0.1:8181:8181
# Uncomment for development
# volumes:
# - ./Server:/app
worker:
image: incognitobin/worker
container_name: incognitobin_worker
networks:
db:
redis:
environment:
USERS_TOKEN_SIZE: 10000
USERS_ID_SIZE: 10000
PASTES_ID_SIZE: 500000
SPLIT_SIZE: 10000
SCYLLA_HOST: scylladb
REDIS_HOST: redis://redis/
depends_on:
scylladb:
condition: service_healthy
redis:
condition: service_started
server:
condition: service_started
restart: always
command: /bin/sh -c "sleep 40 && ./IncognitoBin_worker"
volumes:
scylla-data:
redis-data: