tachybase_todo/docker/app-postgres/docker-compose.yml

34 lines
779 B
YAML
Raw Normal View History

2022-04-29 10:55:01 +08:00
version: "3"
2022-12-23 10:27:37 +08:00
networks:
nocobase:
driver: bridge
2022-04-29 10:55:01 +08:00
services:
app:
2024-01-13 18:36:11 +08:00
image: nocobase/nocobase:latest
2022-04-29 10:55:01 +08:00
networks:
- nocobase
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=postgres
- DB_HOST=postgres
- DB_DATABASE=nocobase
- DB_USER=nocobase
- DB_PASSWORD=nocobase
volumes:
- ./storage:/app/nocobase/storage
ports:
- "13000:80"
depends_on:
- postgres
postgres:
image: postgres:10
restart: always
command: postgres -c wal_level=logical
environment:
POSTGRES_USER: nocobase
POSTGRES_DB: nocobase
POSTGRES_PASSWORD: nocobase
2024-03-28 10:44:55 +08:00
volumes:
- ./storage/db/postgres:/var/lib/postgresql/data
2022-12-23 10:27:37 +08:00
networks:
- nocobase