1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

create nocodb

This commit is contained in:
Nebel 2023-12-19 23:58:35 +09:00
parent 4db8537fe4
commit c2508815d3
Signed by: nebel
GPG key ID: 79807D08C6EF6460
5 changed files with 47 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
node_modules/ node_modules/
dist/ dist/
.next/ .next/
.env

View file

@ -1 +0,0 @@
.env

5
nocodb/Makefile Normal file
View 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
View 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
View file

@ -0,0 +1,13 @@
{
"Servers": {
"1": {
"Name": "postgres@db",
"Group": "docker",
"Port": 5432,
"Username": "postgres",
"Host": "db",
"SSLMode": "prefer",
"MaintenanceDB": "postgres"
}
}
}