update phoenix and add docker compose config

This commit is contained in:
Graham McIntire 2023-02-15 12:32:27 -06:00
parent f654d43aa7
commit f69f110a56
2 changed files with 10 additions and 50 deletions

View file

@ -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:
// '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
// }).addTo(map);
// let markerGroup = L.markerClusterGroup({
// removeOutsideVisibleBounds: true,
// disableClusteringAtZoom: 8,
// });
// map.addLayer(markerGroup);
});

10
docker-compose.yml Normal file
View file

@ -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