Skip to content

Instantly share code, notes, and snippets.

@vocino
Last active March 7, 2021 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vocino/e2fbbb16da8b497c1c5f6a08d056484d to your computer and use it in GitHub Desktop.
Save vocino/e2fbbb16da8b497c1c5f6a08d056484d to your computer and use it in GitHub Desktop.
version: "3"
networks:
web:
external: true
internal:
external: false
volumes:
redis-data:
static-volume:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD:
networks:
- internal
labels:
- traefik.enable=false
redis:
image: redis:3
container_name: aa-redis
command: redis-server
restart: always
volumes:
- "redis-data:/data"
networks:
- internal
expose:
- "6379"
logging:
driver: "json-file"
options:
max-size: "10Mb"
max-file: "5"
allianceauth:
build: .
container_name: aa-auth
restart: always
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic && /usr/bin/supervisord"
ports:
- 5555:5555
volumes:
- ./conf/local.py:/home/allianceserver/myauth/myauth/settings/local.py
- ./templates:/home/allianceserver//myauth/myauth/templates/
- static-volume:/var/www/myauth/static
networks:
- internal
depends_on:
- redis
nginx:
image: nginx:1.15.5
container_name: aa-nginx
labels:
- traefik.frontend.rule=Host(`a.tpose.space`)
- traefik.http.routers.adminer.tls=true
- traefik.http.routers.aa-nginx.tls.certresolver=lets-encrypt
- traefik.port=80
volumes:
- ./conf/local.conf:/etc/nginx/conf.d/default.conf
- static-volume:/var/www/myauth/static
networks:
- internal
- web
depends_on:
- allianceauth
adminer:
image: adminer:4.6.3-standalone
labels:
- traefik.http.routers.adminer.rule=Host(`db.tpose.space`)
- traefik.http.routers.adminer.tls=true
- traefik.http.routers.adminer.tls.certresolver=lets-encrypt
- traefik.port=8080
networks:
- internal
- web
depends_on:
- mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment