8000 GitHub - mckernanin/alliance_auth_docker: Docker stack with Traefik for Alliance Auth
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mckernanin/alliance_auth_docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Included:

  • Dockerfile
  • Docker-compose

Contents

Installation

Installing Mysql:

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;

Installing Docker Stack:

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

Plugins

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!

Updating Auth:

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:

Installing Plugins:

To install plugins run the following commands depending on which plugin you are using

Git

docker exec -it aa-auth pip install git+https://github.com/########## Replacing # with the location of the git repo

PIP

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

About

Docker stack with Traefik for Alliance Auth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 57.4%
  • Dockerfile 38.5%
  • Shell 4.1%
0