diff --git a/404.html b/404.html index f3648418..50758ece 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@
# Generate fernet key with the fedow image :
# Choose one line and fill the .env file
docker run --rm tibillet/fedow:alpha1.2 poetry run python3 -c "from cryptography.fernet import Fernet; print('\n'.join([Fernet.generate_key().decode('utf-8') for i in range(0,30)]))"
# Generate django secret key with the fedow image :
# Choose one line and fill the .env file
docker run --rm tibillet/fedow:alpha1.2 poetry run python3 -c "from django.core.management.utils import get_random_secret_key; print('\n'.join([get_random_secret_key() for i in range(0,30)]))"
# Create frontend and backend network with docker
docker network create frontend
docker network create fedow_backend
# prepare the logs, assets and database folder
mkdir database www logs
services:
fedow_django:
image: tibillet/fedow:alpha1.2
container_name: fedow_django
hostname: fedow_django
restart: always
env_file: .env
user: fedow
volumes:
- ./database:/home/fedow/Fedow/database
- ./www:/home/fedow/Fedow/www
- ./logs:/home/fedow/Fedow/logs
networks:
- fedow_backend
fedow_nginx:
image: nginx
restart: always
container_name: fedow_nginx
hostname: fedow_nginx
volumes:
- ./www:/www
- ./logs:/logs
- ./nginx:/etc/nginx/conf.d
depends_on:
- fedow_django
links:
- fedow_django:fedow_django
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.fedow_nginx.tls.certresolver=myresolver
- traefik.http.routers.fedow_nginx.rule=Host(`$DOMAIN`)
networks:
- frontend
- fedow_backend
networks:
frontend:
external: true
fedow_backend:
# Create frontend and backend network with docker
docker network create frontend
docker network create fedow_backend
# prepare the logs, assets and database folder
mkdir logs www database
services:
fedow_django:
image: tibillet/fedow:latest
container_name: fedow_django
hostname: fedow_django
restart: always
env_file: .env
user: fedow
volumes:
- ./database:/home/fedow/Fedow/database
- ./www:/home/fedow/Fedow/www
- ./logs:/home/fedow/Fedow/logs
networks:
- fedow_backend
fedow_nginx:
image: nginx:latest
restart: always
container_name: fedow_nginx
hostname: fedow_nginx
volumes:
- ./www:/www
- ./logs:/logs
- ./nginx:/etc/nginx/conf.d
depends_on:
- fedow_django
links:
- fedow_django:fedow_django
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.fedow_nginx.tls.certresolver=myresolver
- traefik.http.routers.fedow_nginx.rule=Host(`$DOMAIN`)
networks:
- frontend
- fedow_backend
networks:
frontend:
external: true
fedow_backend:
docker compose up -d
# To see the logs :
docker compose logs -f
And check to https://<DOMAIN>/dashbord
And check to https://<FEDOW_DOMAIN>/dashbord
Congratulation !