From f69f110a5686344c05c5fdc9125a5d5935f17739 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 15 Feb 2023 12:32:27 -0600 Subject: [PATCH] update phoenix and add docker compose config --- assets/js/app.js | 50 ---------------------------------------------- docker-compose.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 50 deletions(-) create mode 100644 docker-compose.yml diff --git a/assets/js/app.js b/assets/js/app.js index 2693fd8..9a01059 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -44,53 +44,3 @@ liveSocket.connect(); // >> liveSocket.enableLatencySim(1000) // enabled for duration of browser session // >> liveSocket.disableLatencySim() window.liveSocket = liveSocket; - -window.addEventListener("phx:page-loading-stop", (_info) => { - let data = { - markersByCallsign: {}, - polylinesByCallsign: {}, - recentCallsigns: [], - mapZoom: 10, - }; - - window.data = data; - - // map stuff here - const MAX_ZOOM = 20; - - // let map = L.map("map", { - // minZoom: 1, - // maxZoom: MAX_ZOOM, - // worldCopyJump: true, - // keyboard: true, - // }).setView([mapLatitude, mapLongitude], 12); - - // var map = L.map("map").setView([51.505, -0.09], 13); - - // let resizeMap = () => { - // const height = $(window).height(); - // const width = $(window).width(); - - // document.querySelector("#map").height(height).width(width); - // map.invalidateSize(); - // }; - - // // $(window) - // // .on("resize", () => { - // // resizeMap(); - // // }) - // // .trigger("resize"); - - // L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { - // maxZoom: 19, - // attribution: - // '© OpenStreetMap', - // }).addTo(map); - - // let markerGroup = L.markerClusterGroup({ - // removeOutsideVisibleBounds: true, - // disableClusteringAtZoom: 8, - // }); - - // map.addLayer(markerGroup); -}); diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c4698fb --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + postgres: + image: postgis/postgis:15-3.3-alpine + ports: + - 5432:5432 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: aprs_dev