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

34 lines
714 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
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"
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
networks:
2024-03-08 12:51:51 +00:00
- nocobase