Created
December 26, 2019 19:10
-
-
Save scotas/900c8b0d55015fb7a29d759d33d7a1d0 to your computer and use it in GitHub Desktop.
Docker Swarm Stack for using Scotas OLS on 19c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.6' | |
services: | |
db: | |
image: oracle/database:19.3.0-ee | |
hostname: ols | |
volumes: | |
- db_data:/opt/oracle/oradata # persistent oracle database data. UID/GID 54321:54321 | |
- /run/shm:/dev/shm | |
ports: | |
- 1521:1521 | |
- 9099:9099 | |
environment: | |
- ORACLE_PWD=Oracle_2019 # Remove after first run | |
deploy: | |
mode: replicated | |
replicas: 1 | |
restart_policy: | |
condition: on-failure | |
max_attempts: 3 | |
window: 120s | |
healthcheck: | |
test: exit 0 # Remove after first run | |
interval: 60s | |
timeout: 3s | |
configs: | |
- source: 00-unzip-ols.sh | |
target: /opt/oracle/scripts/setup/00-unzip-ols.sh | |
- source: 01-ols-ins.sh | |
target: /opt/oracle/scripts/setup/01-ols-ins.sh | |
- source: 02-clean-up-ols-files.sh | |
target: /opt/oracle/scripts/setup/02-clean-up-ols-files.sh | |
dev: | |
image: ols-dev:2.0.5 | |
command: ping 127.0.0.1 | |
hostname: dev | |
volumes: | |
- /home/oracle/github/ols:/home/ols # OLS source | |
environment: | |
- ORACLE_PWD=Oracle_2019 | |
deploy: | |
mode: replicated | |
replicas: 0 | |
restart_policy: | |
condition: on-failure | |
max_attempts: 3 | |
window: 120s | |
healthcheck: | |
test: exit 0 | |
interval: 60s | |
timeout: 3s | |
configs: | |
00-unzip-ols.sh: | |
external: true | |
01-ols-ins.sh: | |
external: true | |
02-clean-up-ols-files.sh: | |
external: true | |
volumes: | |
db_data: | |
driver_opts: | |
type: none | |
device: /home/data/db/19c-ols | |
o: bind |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment