nocobase/docker/app-mysql/docker-compose.yml

38 lines
864 B
YAML
Raw Normal View History

2022-04-29 02:55:01 +00:00
version: "3"
networks:
nocobase:
driver: bridge
services:
app:
2024-01-13 10:36:11 +00:00
image: nocobase/nocobase:latest
2022-04-29 02:55:01 +00:00
networks:
- nocobase
depends_on:
- mysql
environment:
2024-01-13 10:36:11 +00:00
- APP_KEY=your-secret-key # Replace it with your own app key
- ENCRYPTION_FIELD_KEY=your-secret-key # Replace it with your own app key
2022-04-29 02:55:01 +00:00
- DB_DIALECT=mysql
- DB_HOST=mysql
- DB_DATABASE=nocobase
2024-03-08 12:51:51 +00:00
- DB_USER=root
2022-04-29 02:55:01 +00:00
- DB_PASSWORD=nocobase
2024-01-13 10:36:11 +00:00
- DB_TIMEZONE=+08:00
2022-04-29 02:55:01 +00:00
volumes:
- ./storage:/app/nocobase/storage
ports:
- "13000:80"
2024-04-08 01:27:02 +00:00
init: true
2022-04-29 02:55:01 +00:00
mysql:
2024-01-13 10:36:11 +00:00
image: mysql:latest
2022-04-29 02:55:01 +00:00
environment:
MYSQL_DATABASE: nocobase
MYSQL_USER: nocobase
MYSQL_PASSWORD: nocobase
MYSQL_ROOT_PASSWORD: nocobase
restart: always
2024-03-28 02:44:55 +00:00
volumes:
- ./storage/db/mysql:/var/lib/mysql
2022-04-29 02:55:01 +00:00
networks:
2024-03-08 12:51:51 +00:00
- nocobase