mirror of
https://github.com/kou029w/_.git
synced 2025-02-03 15:48:40 +00:00
Compare commits
4 commits
91b857aa99
...
bf2c96a506
Author | SHA1 | Date | |
---|---|---|---|
|
bf2c96a506 | ||
e353a7db6a | |||
c2508815d3 | |||
|
e0e122f2a3 |
8 changed files with 85 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
.next/
|
.next/
|
||||||
|
.env
|
||||||
|
|
1
hasura-rest/.gitignore
vendored
1
hasura-rest/.gitignore
vendored
|
@ -1 +0,0 @@
|
||||||
.env
|
|
|
@ -3560,9 +3560,9 @@ which@^2.0.1, which@^2.0.2:
|
||||||
isexe "^2.0.0"
|
isexe "^2.0.0"
|
||||||
|
|
||||||
word-wrap@~1.2.3:
|
word-wrap@~1.2.3:
|
||||||
version "1.2.3"
|
version "1.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
|
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
|
||||||
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
|
integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
|
||||||
|
|
||||||
wrap-ansi@^6.2.0:
|
wrap-ansi@^6.2.0:
|
||||||
version "6.2.0"
|
version "6.2.0"
|
||||||
|
|
5
nocodb/Makefile
Normal file
5
nocodb/Makefile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.env:
|
||||||
|
touch .env
|
||||||
|
chmod 600 .env
|
||||||
|
@echo POSTGRES_PASSWORD=$(shell openssl rand -hex 32) >> .env
|
||||||
|
@echo NC_AUTH_JWT_SECRET=$(shell openssl rand -hex 32) >> .env
|
28
nocodb/compose.yml
Normal file
28
nocodb/compose.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
services:
|
||||||
|
nocodb:
|
||||||
|
image: nocodb/nocodb:latest
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
volumes:
|
||||||
|
- nocodb_data:/usr/app/data
|
||||||
|
environment:
|
||||||
|
NC_DB: pg://db?u=postgres&p=${POSTGRES_PASSWORD:?}&d=postgres
|
||||||
|
NC_AUTH_JWT_SECRET: ${NC_AUTH_JWT_SECRET:?}
|
||||||
|
db:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4:latest
|
||||||
|
ports:
|
||||||
|
- "8888:80"
|
||||||
|
environment:
|
||||||
|
PGADMIN_DEFAULT_EMAIL: postgres@db.host.docker.internal
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: ${POSTGRES_PASSWORD:?}
|
||||||
|
volumes:
|
||||||
|
- ./servers.json:/pgadmin4/servers.json:ro
|
||||||
|
volumes:
|
||||||
|
nocodb_data:
|
||||||
|
postgres_data:
|
13
nocodb/servers.json
Normal file
13
nocodb/servers.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"Servers": {
|
||||||
|
"1": {
|
||||||
|
"Name": "postgres@db",
|
||||||
|
"Group": "docker",
|
||||||
|
"Port": 5432,
|
||||||
|
"Username": "postgres",
|
||||||
|
"Host": "db",
|
||||||
|
"SSLMode": "prefer",
|
||||||
|
"MaintenanceDB": "postgres"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
23
pocketbase/Dockerfile
Normal file
23
pocketbase/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# https://pocketbase.io/docs/going-to-production#using-docker
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ARG PB_VERSION=0.20.1
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
unzip \
|
||||||
|
ca-certificates
|
||||||
|
|
||||||
|
# download and unzip PocketBase
|
||||||
|
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip
|
||||||
|
RUN unzip /tmp/pb.zip -d /pb/
|
||||||
|
|
||||||
|
# uncomment to copy the local pb_migrations dir into the image
|
||||||
|
# COPY ./pb_migrations /pb/pb_migrations
|
||||||
|
|
||||||
|
# uncomment to copy the local pb_hooks dir into the image
|
||||||
|
# COPY ./pb_hooks /pb/pb_migrations
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# start PocketBase
|
||||||
|
CMD ["/pb/pocketbase", "serve", "--http=0.0.0.0:8080"]
|
12
pocketbase/compose.yml
Normal file
12
pocketbase/compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
services:
|
||||||
|
pocketbase:
|
||||||
|
image: kou029w/pocketbase
|
||||||
|
build: "."
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
- ./pb_migrations:/pb/pb_migrations
|
||||||
|
- ./pb_hooks:/pb/pb_hooks
|
||||||
|
- pb_data:/pb/pb_data
|
||||||
|
volumes:
|
||||||
|
pb_data:
|
Loading…
Add table
Reference in a new issue