database/docker-compose-oracle.yml

49 lines
1.1 KiB
YAML

version: '3.8'
services:
oracle:
image: localhost:8787/oracle:latest
container_name: oracle-server
restart: unless-stopped
environment:
ORACLE_SID: ${ORACLE_SID:-ORCL}
ORACLE_PDB: ${ORACLE_PDB:-ORCLPDB1}
ORACLE_PWD: ${ORACLE_PWD:-wace0909!!}
ORACLE_EDITION: ${ORACLE_EDITION:-standard}
ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
ENABLE_ARCHIVELOG: ${ENABLE_ARCHIVELOG:-true}
TZ: Asia/Seoul
ports:
- "1521:1521"
- "5500:5500"
volumes:
- oracle_data:/opt/oracle/oradata
- ./oracle-init:/docker-entrypoint-initdb.d
- ./oracle-backup:/opt/oracle/backup
networks:
- oracle_network
hostname: oracle-server
shm_size: 1g
# Oracle 관리용 Adminer (선택사항)
oracle-adminer:
image: adminer:latest
container_name: oracle-adminer
restart: unless-stopped
environment:
ADMINER_DEFAULT_SERVER: oracle
ports:
- "8082:8080"
depends_on:
- oracle
networks:
- oracle_network
volumes:
oracle_data:
driver: local
networks:
oracle_network:
driver: bridge