Is it possible to start another service, in that case a java spring application, after the oracle database start? I know there is a depends_on and health_check but did not work for me:
docker-compose:
version: '3.4'
services:
oracle-xe:
image: preloaded_db:latest
container_name: oracle
ports:
- "1521:1521"
environment:
- ORACLE_PASSWORD=oracle
app:
build:
context: ./app
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- oracle-xe
and also my custom image dockerfile:
FROM gvenzl/oracle-xe:latest
COPY *.sql /docker-entrypoint-initdb.d/