2022-04-29 10:55:01 +08:00
|
|
|
version: "3"
|
|
|
|
networks:
|
|
|
|
nocobase:
|
|
|
|
driver: bridge
|
|
|
|
services:
|
|
|
|
app:
|
2024-01-13 18:36:11 +08:00
|
|
|
image: nocobase/nocobase:latest
|
2022-04-29 10:55:01 +08:00
|
|
|
networks:
|
|
|
|
- nocobase
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
environment:
|
2024-01-13 18:36:11 +08:00
|
|
|
- APP_KEY=your-secret-key # Replace it with your own app key
|
2022-04-29 10:55:01 +08:00
|
|
|
- DB_DIALECT=mysql
|
|
|
|
- DB_HOST=mysql
|
|
|
|
- DB_DATABASE=nocobase
|
|
|
|
- DB_USER=nocobase
|
|
|
|
- DB_PASSWORD=nocobase
|
2024-01-13 18:36:11 +08:00
|
|
|
- DB_TIMEZONE=+08:00
|
2022-04-29 10:55:01 +08:00
|
|
|
volumes:
|
|
|
|
- ./storage:/app/nocobase/storage
|
|
|
|
ports:
|
|
|
|
- "13000:80"
|
|
|
|
mysql:
|
2024-01-13 18:36:11 +08:00
|
|
|
image: mysql:latest
|
2022-04-29 10:55:01 +08:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: nocobase
|
|
|
|
MYSQL_USER: nocobase
|
|
|
|
MYSQL_PASSWORD: nocobase
|
|
|
|
MYSQL_ROOT_PASSWORD: nocobase
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- nocobase
|