compose.yaml
此代码来自构建时的仓库快照。修改源码后重新构建即可更新。
services:
postgres:
image: postgres:17-alpine
ports:
- '127.0.0.1:5433:5432'
environment:
POSTGRES_USER: teamdesk
POSTGRES_PASSWORD: teamdesk
POSTGRES_DB: teamdesk
volumes:
- teamdesk_postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U teamdesk -d teamdesk']
interval: 3s
timeout: 3s
retries: 20
redis:
image: redis:7-alpine
command:
[
'redis-server',
'--appendonly',
'yes',
'--maxmemory-policy',
'noeviction',
]
ports:
- '127.0.0.1:6380:6379'
volumes:
- teamdesk_redis:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 3s
timeout: 3s
retries: 20
volumes:
teamdesk_postgres:
teamdesk_redis: