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

39 lines
904 B
YAML
Raw Permalink Normal View History

2024-01-13 10:36:11 +00:00
version: "3"
networks:
nocobase:
driver: bridge
services:
app:
image: nocobase/nocobase:latest
networks:
- nocobase
depends_on:
- mariadb
environment:
- 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
2024-01-13 10:36:11 +00:00
- DB_DIALECT=mariadb
- DB_HOST=mariadb
- DB_DATABASE=nocobase
2024-04-08 01:27:02 +00:00
- DB_USER=root
2024-01-13 10:36:11 +00:00
- DB_PASSWORD=nocobase
- DB_TIMEZONE=+08:00
2024-03-28 02:44:55 +00:00
- DB_UNDERSCORED=true
2024-01-13 10:36:11 +00:00
volumes:
- ./storage:/app/nocobase/storage
ports:
- "13000:80"
2024-04-08 01:27:02 +00:00
init: true
2024-01-13 10:36:11 +00:00
mariadb:
image: mariadb:latest
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/mariadb:/var/lib/mysql
2024-01-13 10:36:11 +00:00
networks:
- nocobase