Files
swg-server-docker/docker-compose.yaml
2025-10-10 14:15:59 -05:00

57 lines
1.5 KiB
YAML

services:
oracle:
container_name: oracle
hostname: oracle
image: container-registry.oracle.com/database/free:latest
platform: linux/arm64
ports:
- "1521:1521"
environment:
# Use the new complex password for SYS/SYSTEM users
ORACLE_PASSWORD: ${DB_USER_PASSWORD}
APP_USER: ${DB_USER:-swg}
# Use the new complex password for the 'swg' user
APP_USER_PASSWORD: ${DB_USER_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "sqlplus -S / as sysdba <<< \"select status from v\\$$instance;\" | grep -q \"OPEN\""]
interval: 10s
timeout: 30s
retries: 10
start_period: 300s
start_interval: 5s
volumes:
- oradata:/opt/oracle/oradata
swg:
container_name: swg
hostname: swg
depends_on:
oracle:
condition: service_healthy
build:
context: .
args:
- REPO_URL=${REPO_URL}
- REPO_USERNAME=${REPO_USERNAME}
- REPO_PASSWORD=${REPO_PASSWORD}
ports:
- "44451-44453:44451-44453/tcp"
- "44462-44464:44462-44464/tcp"
- "44451-44453:44451-44453/udp"
- "44462-44464:44462-44464/udp"
environment:
DB_HOST: oracle
DB_PORT: 1521
DB_USER: ${DB_USER:-swg}
ORACLE_PASSWORD: ${DB_USER_PASSWORD}
# Use the new complex password here as well
DB_PASSWORD: ${DB_USER_PASSWORD}
tty: true
stdin_open: true
volumes:
- swg-main:/swg-main
volumes:
oradata:
swg-main: