-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.35 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
networks:
rdi-net:
ipam:
driver: default
config:
- subnet: 192.168.20.0/24
services:
re1:
image: redislabs/redis:latest
container_name: re1
restart: unless-stopped
tty: true
cap_add:
- sys_resource
ports:
- 12000:12000
- 12001:12001
- 8443:8443
- 9443:9443
volumes:
- $PWD/redis-cli/scenarios:/opt/scenarios
networks:
rdi-net:
ipv4_address: 192.168.20.2
oracle:
image: container-registry.oracle.com/database/enterprise:latest
container_name: oracle
ports:
- 1521
environment:
- ORACLE_SID=ORCLCDB
- ORACLE_EDITION=enterprise
- ORACLE_PWD=Password1
- INIT_SGA_SIZE=1616M
- INIT_PGA_SIZE=1616M
volumes:
- $PWD/oracle/scripts:/opt/oracle/scripts/startup
- $PWD/sqlplus/scenarios:/opt/scenarios
healthcheck:
test: /opt/oracle/checkDBStatus.sh
interval: 30s
timeout: 1s
retries: 5
start_period: 10m
start_interval: 30s
networks:
rdi-net:
ipv4_address: 192.168.20.3
rdi:
build:
context: $PWD/rdi
container_name: rdi
privileged: true
restart: on-failure
depends_on:
re1:
condition: service_started
oracle:
condition: service_healthy
networks:
rdi-net:
ipv4_address: 192.168.20.4