mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
create nocodb
This commit is contained in:
parent
4db8537fe4
commit
c2508815d3
5 changed files with 47 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
node_modules/
|
||||
dist/
|
||||
.next/
|
||||
.env
|
||||
|
|
1
hasura-rest/.gitignore
vendored
1
hasura-rest/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
.env
|
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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue