🙌 🙌 🙌
source of something special, lol
This project sets up a PostgreSQL database using Docker Compose.
- Docker
- Docker Compose
Create a .env (based on .env.example) file in the project root directory with the following variables:
Run the following command to start the PostgreSQL database
docker compose up -dThis command will start a PostgreSQL server on the port specified in the .env file. The POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB environment variables set the default credentials and database, which you can use to connect to the database.
The data stored in the database persists across container restarts thanks to the Docker volume named postgres_data.
You can connect to the database using the credentials and port number specified in the .env file. The host is localhost if you're running the Docker container on your local machine.
Build the image
docker build -t stashify-next .Run the container
docker run --name stashify_next -p 8080:3000 stashify-nextchmod +x scripts/*.shGenerate .env file based on .env.example
scripts/create-env.shCopyright © 2024 Dominic Kolbe 🇩🇪