Skip to content

Commit

Permalink
further work
Browse files Browse the repository at this point in the history
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
  • Loading branch information
mooxl committed Dec 20, 2023
1 parent f0aae1d commit 51c5a67
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 1,913 deletions.
8 changes: 3 additions & 5 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ PAYLOAD_HOST=localhost:3000
PAYLOAD_URL=http://localhost:3000
PAYLOAD_PORT=3000
PAYLOAD_SECRET=supersecretkey
MONGODB_URI=mongodb://payload:test@mongo:27017
MONGODB_USER=payload
MONGODB_PW=test
DATABASE_URI=postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
TOKEN=supersecrettoken
REPOSITORY=mooxl/astroad
DATABASE_URI=postgresql://postgres:postgres@localhost:5432/postgres
PAYLOAD_SECRET=secret
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
POSTGRES_DB: payload
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- ./data:/var/lib/postgresql/data
ports:
- 5432:5432


6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "astroad",
"description": "A pre-configured setup for easy website development with Astro and Payload CMS.",
"description": "An pre-configured environment for convenient web development using Astro and Payload CMS, ready for deployment on your own VPS.",
"license": "MIT",
"version": "2.0",
"scripts": {
"dev": "dotenv -- turbo run dev"
"dev": "docker compose up -d && dotenv -- turbo run dev"
},
"devDependencies": {
"@biomejs/biome": "1.4.1",
"dotenv-cli": "7.3.0",
"prettier": "3.1.1",
"prettier-plugin-packagejson": "2.4.7",
"turbo": "1.11.2"
},
"resolutions": {
Expand Down
1 change: 0 additions & 1 deletion payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dependencies": {
"@payloadcms/bundler-webpack": "^1.0.0",
"@payloadcms/db-postgres": "^0.x",
"@payloadcms/plugin-cloud": "^2.0.0",
"@payloadcms/richtext-lexical": "^0.4.1",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
Expand Down
3 changes: 2 additions & 1 deletion payload/src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default buildConfig({
},
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
connectionString:
`postgres://${process.env.DATABASE_USER}:${process.env.DATABASE_PASSWORD}@localhost:5432/payload`,
},
}),
});
Loading

0 comments on commit 51c5a67

Please sign in to comment.