Placemark was originally developed without using Docker, so the Docker configuration is a little new. Note that this docker configuration is optimized for development - we don't yet have a configuration for production.
cp .env.example .env.local.env.local
NEXT_PUBLIC_MAPBOX_TOKEN=YOUR_MAPBOX_ACCESS_TOKEN
docker-compose builddocker-compose updocker-compose up -d- Open localhost:3000 for the server.
- Open localhost:5555 for the Prisma database browser.
docker-compose logs -fdocker-compose logs -f web or
docker logs placemark-webdocker-compose logs -f db or
docker logs placemark-dbdocker-compose logs -f prisma or
docker logs placemark-studiodocker-compose downdocker-compose stop prismadocker-compose exec db psql -U postgres -d placemarkdocker-compose exec prisma npx prisma studiodocker-compose exec prisma npx prisma migrate dev --name initdocker-compose exec prisma npx prisma generatedocker-compose exec prisma npx prisma db pulldocker-compose exec web bashdocker-compose exec db bashdocker-compose up -d --build --force-recreate webdocker-compose restart webNote: We are not exposing the database to the host machine, so you can't connect to the database using a database client like pgAdmin or DBeaver. If you want to connect to the database, you can use the terminal access to the db service. If you want to expose the database to the host machine, you can add the following line to the db service in the docker-compose.yml file.
ports:
- "5432:5432"