Skip to content

Commit

Permalink
continer_name web
Browse files Browse the repository at this point in the history
  • Loading branch information
Ammarmoulla committed Oct 14, 2023
1 parent 169ef8d commit 3ca0020
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
- name: Set up environment variables
run: |
echo "authtoken: ${{ secrets.NGROK_AUTH }}" >> ./config/ngrok.yml
# echo "authtoken: ${{ secrets.NGROK_AUTH }}" >> ./config/ngrok.yml
echo "SECRET_KEY=${{ secrets.SECRET_KEY }}" >> .env
echo "CELERY_BROKER_URL='redis://redis:6379'" >> .env
echo "CELERY_RESULT_BACKEND='redis://redis:6379'" >> .env
Expand Down
6 changes: 5 additions & 1 deletion config/ngrok.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
region: us
version: '2'
web_addr: 0.0.0.0:4040
authtoken: '2WTyw9mpd4rAEVKvkY8VJM5QdWw_37U8my8fPchiy8FGBrAS7'
tunnels:
web:
proto: http
addr: 8000
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
ports:
- '8000:8000'
hostname: app
container_name: web
stdin_open: true
expose:
- '8000'
Expand Down Expand Up @@ -52,13 +53,15 @@ services:
networks:
- live
ngrok:
image: wernight/ngrok
image: ngrok/ngrok:latest
restart: unless-stopped
ports:
- "4040:4040"
command: "ngrok http app:8000"
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
volumes:
- ./config/ngrok.yml:/etc/ngrok.yml

networks:
live:

0 comments on commit 3ca0020

Please sign in to comment.