Laboratório utilizado durante os cursos:
Liberar acesso à URL no Codespaces
Adicionar ao arquivo netbox-docker/configuration/configuration.py
CSRF_TRUSTED_ORIGINS = [
'http://localhost:8000',
'https://localhost:8000', # If you're using HTTPS locally
'http://127.0.0.1:8000', # Sometimes localhost resolves differently
'https://*.github.dev', # If accessing via Codespaces URL
]
docker network create autonetops_network
no arquivo docker-compose.yaml para cada servico:
networks:
- autonetops_network
Adicionar ao final:
networks:
- autonetops_network:
external: true
driver: bridge
cd autonetops_labs_db/netbox/backup
./netbox_database_import.sh