diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 0fcce3b..b22b89b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -37,6 +37,6 @@ jobs: key: ${{ secrets.SSH_DEPLOY_DEV }} script: | docker pull pyronear/pyro-platform:latest - cd pyro-platform-prod/ && docker compose -f docker-compose-prod.yml down && docker compose -f docker-compose-prod.yml up -d + cd pyro-platform-dev/ && docker compose down && docker compose up -d docker inspect -f '{{ .Created }}' $(docker compose images -q frontend) docker image prune -a --force diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml deleted file mode 100644 index 0cdb6ee..0000000 --- a/docker-compose-prod.yml +++ /dev/null @@ -1,45 +0,0 @@ -version: '3.7' - -services: - - reverse-proxy: - image: traefik:v2.4 - container_name: traefik - ports: - - "80:8050" - - "8080:8080" - - "443:443" - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - $PWD/traefik.toml:/etc/traefik/traefik.toml - - $PWD/dynamic_assets.toml:/etc/traefik/dynamic/assets.toml - - $PWD/acme.json:/acme.json - labels: - - "traefik.http.middlewares.strip-www.redirectregex.regex=^https?://(www\\.)(.+)" - - "traefik.http.middlewares.strip-www.redirectregex.replacement=https://$${2}" - - "traefik.http.middlewares.strip-www.redirectregex.permanent=true" - restart: always - networks: - - web - - frontend: - image: pyronear/pyro-platform:latest - expose: - - 8050 - command: python ./main.py --host 0.0.0.0 --port 8050 - environment: - - API_URL=${API_URL} - - API_LOGIN=${API_LOGIN} - - API_PWD=${API_PWD} - - SENTRY_DSN=${SENTRY_DSN} - - DEBUG=${DEBUG} - networks: - - web - labels: - - "traefik.enable=true" - - "traefik.http.routers.platform.rule=Host(`platform.pyronear.org`)" - - "traefik.http.routers.platform.entrypoints=websecure" - -networks: - web: - external: true \ No newline at end of file