Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Websoft9/docker-library int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
qiaofeng1227 committed Dec 26, 2023
2 parents 58e9220 + 8c23d2f commit 7e2856f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
15 changes: 13 additions & 2 deletions apps/nocobase/.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ W9_ID=nocobase
W9_HTTP_PORT=80
W9_HTTP_PORT_SET=9001
W9_URL=appname.example.com
W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD

W9_LOGIN_USER=[email protected]
W9_LOGIN_PASSWORD=admin123

W9_DB_EXPOSE="mysql"
W9_DB_VERSION="8"
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####
#### --------------------------------------------------------------------------------------- ####

DB_DIALECT=mysql
DB_HOST=$W9_ID-mysql
DB_DATABASE=$W9_ID
DB_USER=$W9_ID
DB_PASSWORD=$W9_POWER_PASSWORD
LOCAL_STORAGE_BASE_URL=/storage/uploads
15 changes: 1 addition & 14 deletions apps/nocobase/Notes.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# Nocodb
# Nocobase

Nocodb 提供了非常精准的 [Docker Compose 部署方案](https://github.com/nocodb/nocodb).

## to do

```
ports:
- "${W9_PORT}:8080"
- "8081:8081"
- "8082:8082"
- "8083:8083"
```

除8080之外,其他端口的用途有待研究
12 changes: 2 additions & 10 deletions apps/nocobase/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ services:
restart: unless-stopped
depends_on:
- mysql
environment:
- DB_DIALECT=mysql
- DB_HOST=$W9_ID-mysql
- DB_DATABASE=$W9_ID
- DB_USER=$W9_ID
- DB_PASSWORD=$W9_POWER_PASSWORD
- LOCAL_STORAGE_BASE_URL=/storage/uploads
volumes:
- nocobase:/app/nocobase/storage
ports:
- "$W9_HTTP_PORT_SET:$W9_HTTP_PORT"
- "$W9_HTTP_PORT_SET:80"
env_file: .env

mysql:
image: mysql:8
image: mysql:$W9_DB_VERSION
container_name: $W9_ID-mysql
environment:
MYSQL_DATABASE: $W9_ID
Expand All @@ -36,7 +29,6 @@ services:
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- mysql:/var/lib/mysql
env_file: .env

networks:
default:
Expand Down

0 comments on commit 7e2856f

Please sign in to comment.