Included:
- Dockerfile
- Docker-compose
Rather than storing the database in a docker - Install MySQL in a local instalation
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
Start the mysql server
sudo service mysql start
Create database and user for AA
sudo mysql -u root
Alter USER for DB Username and DATABSE for Database name and replace PASSWORD with your own password
CREATE USER 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE DATABASE CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON DATABASE . * TO 'USER'@'localhost';
exit;
Clone the Repo to your own server
git clone https://github.com/milleruk/alliance_auth_docker.git
edit the conf/local.py
for your eve api and mysql info and reflect the mysql info in docker-compose.yml
Please see here for CORE features and services
Features - https://allianceauth.readthedocs.io/en/latest/features/
Services - https://allianceauth.readthedocs.io/en/latest/installation/services/
edit .env
to reflect the subdomain and domain name you are choosing for auth to be installed on
run docker-compose up -d
to bring the docker stack online
run docker-compose logs -f --tail=20
When the images have finished downloading and are running
run the following command to enter in the data to the database
docker exec -it aa-auth python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic && /usr/bin/supervisord
Once this has completed we are now going to create our SuperUser
run docker exec -it aa-auth python manage.py createsuperuser
And we are done!
Run the following commands in the following order
docker exec -it aa-auth pip install --upgrade allianceauth
docker exec -it aa-auth allianceauth update /home/allianceserver/myauth
docker exec -it aa-auth python manage.py migrate
docker exec -it aa-auth python manage.py collectstatic
docker exec -it aa-auth supervisorctl restart myauth:
To install plugins run the following commands depending on which plugin you are using
docker exec -it aa-auth pip install git+https://github.com/##########
Replacing # with the location of the git repo
docker exec -it aa-auth pip install ########
Replacing # with the plugin pip name
Add 'PLUGIN NAME'
to INSTALLED_APPS in your conf/local.py
settings.
Run migrations and restart your AA server
docker exec -it aa-auth python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic && /usr/bin/supervisord