Skip to content

Commit

Permalink
api traccar como env var
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Nov 22, 2024
1 parent 8573ef8 commit c20cf4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ DB_PASSWORD=postgres
DB_NAME=transportador
SECRET_KEY=admin
APP_PORT=5000
APP_HOST=127.0.0.1
TRACCAR_API=https://traccar.potus.ar/api
3 changes: 2 additions & 1 deletion .env.devops
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
DB_NAME=transportador
SECRET_KEY=admin
APP_PORT=5001
APP_HOST=192.168.1.14
APP_HOST=192.168.1.14
TRACCAR_API=https://traccar.potus.ar/api
1 change: 1 addition & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ jobs:
SECRET_KEY: ${{ secrets.APP_SECRET_KEY }}
APP_PORT: ${{ secrets.APP_PORT }}
APP_HOST: ${{ secrets.APP_HOST }}
TRACCAR_API: ${{ secrets.TRACCAR_API }}
ENV: staging
run: docker-compose -f docker-compose-stage.yml -p g4-api up -d
1 change: 1 addition & 0 deletions docker-compose-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
SECRET_KEY: ${SECRET_KEY}
APP_PORT: ${APP_PORT}
APP_HOST: ${APP_HOST}
TRACCAR_API: ${TRACCAR_API}
ENV: ${ENV}
restart: unless-stopped

Expand Down

0 comments on commit c20cf4c

Please sign in to comment.