-
Notifications
You must be signed in to change notification settings - Fork 0
/
databases.yaml
58 lines (58 loc) · 1.22 KB
/
databases.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
version: '3.9'
services:
oracle_db:
image: gvenzl/oracle-xe:21.3.0
container_name: oracle_db
environment:
- "ORACLE_ALLOW_REMOTE=true"
- "ORACLE_PASSWORD=oracle"
- "ORACLE_DATABASE=flashcards"
- "APP_USER=flashcards"
- "APP_USER_PASSWORD=flashcards"
healthcheck:
test: [ "CMD-SHELL", "healthcheck.sh" ]
interval: 10s
timeout: 5s
retries: 10
ports:
- '1521:1521'
volumes:
- oracle_data:/opt/oracle/oradata
networks:
- flashcards
deploy:
resources:
limits:
cpus: '4'
memory: '12G'
reservations:
cpus: '4'
memory: '12G'
cassandra:
image: cassandra:latest
container_name: cassandra
ports:
- "9042:9042"
networks:
- flashcards
environment:
- CASS_USERNAME=cassandra
- CASS_PASSWORD=cassandra
healthcheck:
test: [ "CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
deploy:
resources:
limits:
cpus: '4'
memory: '12G'
reservations:
cpus: '4'
memory: '12G'
networks:
flashcards:
driver: bridge
volumes:
oracle_data: