mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
refactor(server): make redis required module (#9121)
This commit is contained in:
4
.docker/dev/.env.example
Normal file
4
.docker/dev/.env.example
Normal file
@@ -0,0 +1,4 @@
|
||||
DATABASE_LOCATION=./postgres
|
||||
DB_PASSWORD=affine
|
||||
DB_USERNAME=affine
|
||||
DB_DATABASE_NAME=affine
|
||||
3
.docker/dev/.gitignore
vendored
Normal file
3
.docker/dev/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
postgres
|
||||
.env
|
||||
compose.yml
|
||||
28
.docker/dev/compose.yml.example
Normal file
28
.docker/dev/compose.yml.example
Normal file
@@ -0,0 +1,28 @@
|
||||
name: affine_dev_services
|
||||
services:
|
||||
postgres:
|
||||
env_file:
|
||||
- .env
|
||||
image: postgres:16
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
volumes:
|
||||
- ${DATABASE_LOCATION}:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
mailhog:
|
||||
image: mailhog/mailhog:latest
|
||||
ports:
|
||||
- 1025:1025
|
||||
- 8025:8025
|
||||
|
||||
networks:
|
||||
dev:
|
||||
Reference in New Issue
Block a user