-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (50 loc) · 1.36 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
services:
oracle-xe-11g:
image: gvenzl/oracle-xe:11
container_name: oracle-xe-11g
restart: unless-stopped
ports:
- "1521:1521"
environment:
ORACLE_PASSWORD: ${ORA_PASS:?ORA_PASS is required}
volumes:
- oracle-data:/u01/app/oracle/oradata
healthcheck:
test:
[
"CMD-SHELL",
"echo 'select 1 from dual;' | sqlplus -s system/$$ORACLE_PASSWORD@//localhost:1521/XE | grep -q 1",
]
interval: 30s
timeout: 10s
retries: 10
start_period: 120s
schemaforge:
build:
context: .
container_name: schemaforge
restart: unless-stopped
depends_on:
oracle-xe-11g:
condition: service_healthy
env_file:
- .env
environment:
APP_PORT: ${APP_PORT:-3000}
ORA_HOST: ${ORA_HOST:-oracle-xe-11g}
ORA_PORT: ${ORA_PORT:-1521}
ORA_SERVICE: ${ORA_SERVICE:-XE}
ORA_USER: ${ORA_USER:-system}
ORA_PASS: ${ORA_PASS:?ORA_PASS is required}
ORA_CLIENT_LIB_DIR: ${ORA_CLIENT_LIB_DIR:-/opt/oracle/instantclient}
LD_LIBRARY_PATH: ${ORA_CLIENT_LIB_DIR:-/opt/oracle/instantclient}
DB_PATH: /data/schemaforge.db
NITRO_HOST: 0.0.0.0
NITRO_PORT: ${APP_PORT:-3000}
user: "1000:1000"
ports:
- "${APP_PORT:-3000}:${APP_PORT:-3000}"
volumes:
- ./data/app:/data
volumes:
oracle-data: