-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (53 loc) · 1.21 KB
/
docker-compose.yaml
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
version: '3'
services:
app:
build: .
ports:
- "8080:8080"
container_name: myapp_container
depends_on:
- postgres
- redis
- cassandra-node1
restart: unless-stopped
networks:
- backend
cassandra-node1:
image: cassandra:latest
container_name: cassandra-node1
environment:
- CASSANDRA_CLUSTER_NAME=TestCluster
- CASSANDRA_DC=datacenter1
- CASSANDRA_RACK=rack1
- CASSANDRA_SEEDS=cassandra-node1
- CASSANDRA_START_RPC=true
- CASSANDRA_NUM_TOKENS=256
ports:
- "9042:9042"
volumes:
- cassandra-data1:/var/lib/cassandra
networks:
- backend
postgres:
image: bitnami/postgresql
container_name: mydb_container
environment:
- POSTGRESQL_DATABASE=myapp_db
- POSTGRESQL_USERNAME=myapp_user
- POSTGRESQL_PASSWORD=your_secure_password
volumes:
- postgres_data:/bitnami/postgresql
networks:
- backend
redis:
image: redis/redis-stack:latest
container_name: myredis_container
# command: redis-server --requirepass your_redis_password
networks:
- backend
volumes:
postgres_data:
cassandra-data1:
networks:
backend:
driver: bridge