Giter VIP home page Giter VIP logo

alliance_auth_docker's Introduction

Included:

  • Dockerfile
  • Docker-compose

Contents

Installation

Image

The docker image is ready to use if you understand docker yourself and

image: milleruk/allianceauth

Traefik

This Repo assumes you have Traefik installed and understand how to use it.

I have created a stack ready for production here and

https://github.com/milleruk/TraefikStack/

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

edit setup.sql to reflect the database settings you have added above, This is a start up script that will create the base database on MYSQL Docker startup

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

alliance_auth_docker's People

Contributors

bonsailinse avatar mckernanin avatar milleruk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

alliance_auth_docker's Issues

sql setup correction.

Given Allaince Auth docs state user setup should be as per this:

CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE alliance_auth CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON alliance_auth . * TO 'allianceserver'@'localhost';

Your sql file is this :

CREATE USER 'aauth'@'localhost' IDENTIFIED BY 'PASSWORD';
CREATE DATABASE aauth CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON alliance_auth . * TO 'aauth'@'localhost';

that last line should read

GRANT ALL PRIVILEGES ON aauth . * TO 'aauth'@'localhost';

Update Readme

Update read me to reflect the following

  • Update to Traefik V2
  • Update to add docker mySQL

supervisord no such file or directory

Hello,

I am getting the error below when launching from docker-compose after it builds the image. This happens on both my server as well as my local testing env.

Thanks

ERROR: for allianceauth Cannot start service allianceauth: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/usr/bin/supervisord\": stat /usr/bin/supervisord: no such file or directory": unknown

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.