Skip to content

Instantly share code, notes, and snippets.

@marceloandriolli
Last active December 30, 2019 19:45
Show Gist options
  • Save marceloandriolli/71f264d26a921444732fb7574ad0fdb7 to your computer and use it in GitHub Desktop.
Save marceloandriolli/71f264d26a921444732fb7574ad0fdb7 to your computer and use it in GitHub Desktop.
Conection docker projects by a specific network
# Setup to development testing without touch CMS API:
# /triller_cms/settings/base.py
TRILLER_CMS_OLD_API_URL = 'https://development-social.triller.co/v1.5/'
#TRILLER_CMS_API_URL = 'http://api.staging.triller.co/v1.5/cms-api'
TRILLER_CMS_API_URL = ''
# triller_cms/settings/development.py
#TRILLER_CMS_API_URL = os.getenv('CMS_API_URL', 'https://development-social.triller.co/v1.5/cms-api')
# triller_cms/settings/docker.py
#TRILLER_CMS_API_URL = 'http://172.21.0.3:5000/v1.5/cms-api'
#TRILLER_CMS_API_URL = 'https://development-social.triller.co/v1.5/cms-api/'
# triller_cms/settings/test.py
#TRILLER_CMS_API_URL = os.getenv('CMS_API_URL', 'https://development-social.triller.co/v1.5/cms-api')
=================================================================================================================
# Fisrt create a network
docker network create my-pre-existing-network
CMS:
adding at docker-compose.yml
networks:
- default
networks:
default:
external:
name: my-pre-existing-network
API:
adding at docker-compose.yml
networks:
default:
external:
name: my-pre-existing-network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment