2022-04-29 02:55:01 +00:00
|
|
|
version: "3"
|
2022-12-23 02:27:37 +00:00
|
|
|
networks:
|
|
|
|
nocobase:
|
|
|
|
driver: bridge
|
2022-04-29 02:55:01 +00:00
|
|
|
services:
|
|
|
|
app:
|
2024-01-13 10:36:11 +00:00
|
|
|
image: nocobase/nocobase:latest
|
2022-04-29 02:55:01 +00:00
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
environment:
|
2024-01-13 10:36:11 +00:00
|
|
|
- APP_KEY=your-secret-key # Replace it with your own app key
|
2024-08-09 09:14:37 +00:00
|
|
|
- ENCRYPTION_FIELD_KEY=your-secret-key # Replace it with your own app key
|
2022-04-29 02:55:01 +00:00
|
|
|
- DB_DIALECT=postgres
|
|
|
|
- DB_HOST=postgres
|
|
|
|
- DB_DATABASE=nocobase
|
|
|
|
- DB_USER=nocobase
|
|
|
|
- DB_PASSWORD=nocobase
|
|
|
|
volumes:
|
|
|
|
- ./storage:/app/nocobase/storage
|
|
|
|
ports:
|
|
|
|
- "13000:80"
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
2024-04-08 01:27:02 +00:00
|
|
|
init: true
|
2022-04-29 02:55:01 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres:10
|
|
|
|
restart: always
|
|
|
|
command: postgres -c wal_level=logical
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: nocobase
|
|
|
|
POSTGRES_DB: nocobase
|
2022-11-28 08:41:58 +00:00
|
|
|
POSTGRES_PASSWORD: nocobase
|
2024-03-28 02:44:55 +00:00
|
|
|
volumes:
|
|
|
|
- ./storage/db/postgres:/var/lib/postgresql/data
|
2022-12-23 02:27:37 +00:00
|
|
|
networks:
|
2024-08-09 09:14:37 +00:00
|
|
|
- nocobase
|