networks:
nocobase:
driver: bridge
services:
app:
image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest
restart: always
networks:
- nocobase
depends_on:
- kingbase
environment:
# Application key for generating user tokens, etc.
# Changing APP_KEY invalidates old tokens
# Use a random string and keep it confidential
- APP_KEY=your-secret-key
# Database type
- DB_DIALECT=kingbase
# Database host, replace with existing database server IP if needed
- DB_HOST=kingbase
- DB_PORT=54321
# Database name
- DB_DATABASE=kingbase
# Database user
- DB_USER=nocobase
# Database password
- DB_PASSWORD=nocobase
# Timezone
- TZ=UTC
volumes:
- ./storage:/app/nocobase/storage
ports:
- "11000:80"
# Kingbase service for testing purposes only
kingbase:
image: registry.cn-shanghai.aliyuncs.com/nocobase/kingbase:v009r001c001b0030_single_x86
platform: linux/amd64
restart: always
privileged: true
networks:
- nocobase
volumes:
- ./storage/db/kingbase:/home/kingbase/userdata
environment:
ENABLE_CI: no # Must be set to no
DB_USER: nocobase
DB_PASSWORD: nocobase
DB_MODE: pg # pg only
NEED_START: yes
command: ["/usr/sbin/init"]