Run the following from the route of the soruce folder. In this example we give it the tag of dev to seperate it from any other container verions.
docker build . -t erupe:devThis is just running the container. You can do volume mounts into the container for the config.json to tell it to communicate to a database. You will need to do this also for other folders such as bin and savedata
docker run erupe:devDocker compose allows you to run multiple containers at once. The docker compose in this folder has 3 things set up.
- postgres
- pg admin (Admin interface to make db changes)
- erupe
We automatically populate the database to the latest version on start. If you you are updating you will need to apply the new schemas manually.
Before we get started you should make sure the database info matches whats in the docker compose file for the environment variables POSTGRES_PASSWORD,POSTGRES_USER and POSTGRES_DB. You can set the host to be the service name db.
Here is a example of what you would put in the config.json if you was to leave the defaults. It is strongly recommended to change the password.
"Database": {
"Host": "db",
"Port": 5432,
"User": "postgres",
"Password": "password",
"Database": "erupe"
},Place this file within ./docker/config.json
You will need to do the same for your bins place these in ./docker/bin
Clone the Severs repo into ./docker/Severs
Make sure your hosts are pointing to where this is hosted
docker-compose stopdocker-compose downMake sure if you want to delete your data you delete the folders that persisted
- ./docker/savedata
- ./docker/db-data
This boots the db pgadmin and the server in a detached state
docker-compose up -dif you want all the logs and you want it to be in an attached state
docker-compose upQ: My Postgres will not populate. A: You're setup.sh is maybe saved as CRLF it needs to be saved as LF.