-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.43 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
services:
oracle-db:
image: container-registry.oracle.com/database/enterprise:19.19.0.0
container_name: oracle-19c-db-banking
environment:
- ORACLE_SID=ORCLCDB
- ORACLE_PDB=ORCLPDB1
- ORACLE_PWD=Oracle123
- ORACLE_EDITION=enterprise
- ORACLE_CHARACTERSET=AL32UTF8
- ENABLE_ARCHIVELOG=true
ports:
- "1522:1521"
volumes:
- oracle_data:/opt/oracle/oradata
- ./init-scripts:/opt/oracle/scripts/startup
- ./setup-scripts:/opt/oracle/scripts/setup
networks:
- oracle-network
restart: unless-stopped
deploy:
resources:
limits:
memory: 4G
cpus: '2.0'
reservations:
memory: 3G
cpus: '1.5'
healthcheck:
test: ["CMD-SHELL", "echo 'SELECT 1 FROM DUAL;' | sqlplus -S system/Oracle123@ORCLPDB1"]
interval: 30s
timeout: 15s
retries: 10
start_period: 10m
redis:
image: redis:7-alpine
container_name: banking-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- oracle-network
restart: unless-stopped
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
volumes:
oracle_data:
driver: local
redis_data:
driver: local
networks:
oracle-network:
driver: bridge