Open izharskiy opened 3 years ago
My compose.yaml
version: '3.9'
services:
oradb-bank:
image: sath89/oracle-12c:latest
container_name: oradb-bank
# copy-paste https://github.com/MaksymBilenko/docker-oracle-12c/issues/61#issue-255849917
healthcheck:
test: ["CMD-SHELL", "if [ \"`echo \\\"SELECT ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME = 'ANONYMOUS' AND ACCOUNT_STATUS = 'EXPIRED';\\\"|/u01/app/oracle/product/12.1.0/xe/bin/sqlplus -S sys/oracle as sysdba|grep ACCOUNT_STATUS`\" = \"ACCOUNT_STATUS\" ];then true;else false;fi"]
timeout: 3s
interval: 30s
# start_period: 900s
retries: 30
restart: always
ports:
- "8080:8080"
- "1521:1521"
volumes:
- /mnt/oracle/data:/u01/app/oracle
app-centos-bank:
image: 03709227889e
container_name: app-bank
privileged: true
# https://github.com/compose-spec/compose-spec/blob/master/spec.md#long-syntax-1
depends_on:
oradb-bank:
condition: service_healthy
sath89/oracle-12c latest 17cd1ab9d9a7 3 years ago 5.7GB