mirror of
https://gitlab.bmcstudios.org/public_projects/swg-server-docker.git
synced 2026-01-16 17:04:26 -05:00
1.4 KiB
1.4 KiB
swg-docker
This project sets up a development environment for SWG using Docker.
Instructions:
- Clone this repository.
- (Optional) To use a custom git repository for the server source, create a file named
.envin this directory. See the "Custom Repository" section below for details. - Run
docker compose up -d --buildto build the images and start the services. - Run
docker exec -it swg bashto log into a shell in theswgcontainer. - Run
ant swgto compile the game and the assets. - Run
ant startto run the server.
Custom Repository
You can configure the Docker build to pull the swg-main source from your own repository. Create a file named .env in the root of this project and add the following variables as needed.
Example .env file:
# .env file for custom repository configuration
# The full HTTPS URL to your git repository.
# If left unset, it defaults to https://github.com/SWG-Source/swg-main.git
REPO_URL=https://github.com/SWG-Source/swg-main.git
# (Optional) Credentials for private repositories.
# For security, it is highly recommended to use a Personal Access Token instead of your actual password.
REPO_USERNAME=your-gitlab-username
REPO_PASSWORD=your-personal-access-token
# (Optional) Credentials for overriding the default oracle DB
ORACLE_PASSWORD=YourSecureOraclePassword
APP_USER=YourAppUser
APP_USER_PASSWORD=YourSecureAppPassword