-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (58 loc) · 1.1 KB
/
docker-compose.yaml
File metadata and controls
64 lines (58 loc) · 1.1 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
version: "3.9"
services:
app:
build: .
restart: always
environment:
- REDIS_CONNECTION_STRING=redis://redis:6379/0
- JWT_SECRET=fdkslhfdshgjldsngklds
- DATABASE_HOST=cassandra
- DATACENTER=datacenter1
- KEYSPACE=system
ports:
- '8080:8080'
expose:
- '8080'
depends_on:
- cassandra
- redis
networks:
- miniurl
cassandra:
image: cassandra:4.1.0
container_name: cassandra
ports:
- "9042:9042"
expose:
- '9042'
restart: on-failure:10
volumes:
- db:/var/lib/cassandra
networks:
- miniurl
healthcheck:
test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"]
interval: 10s
timeout: 10s
retries: 15
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- cache:/data
environment:
- REDIS_PORT=6379
- REDIS_DATABASES=16
networks:
- miniurl
networks:
miniurl:
name: miniurl
driver: bridge
volumes:
db:
driver: local
cache:
driver: local