mirror of
https://gitlab.bmcstudios.org/public_projects/swg-server-docker.git
synced 2026-01-16 17:04:26 -05:00
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
services:
|
|
|
|
oracle:
|
|
container_name: oracle
|
|
hostname: oracle
|
|
image: container-registry.oracle.com/database/free:latest
|
|
platform: linux/arm64
|
|
ports:
|
|
- "1521:1521"
|
|
environment:
|
|
ORACLE_PASSWORD: swg
|
|
APP_USER: ${DB_USER:-swg}
|
|
APP_USER_PASSWORD: ${DB_USER_PASSWORD:-swg}
|
|
healthcheck:
|
|
# Updated healthcheck to use sqlplus, which exists in this image
|
|
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: swg
|
|
DB_PASSWORD: ${DB_USER_PASSWORD:-swg}
|
|
tty: true
|
|
stdin_open: true
|
|
volumes:
|
|
- swg-main:/swg-main
|
|
|
|
volumes:
|
|
oradata:
|
|
swg-main: |