mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善
This commit is contained in:
39
docker/dev/docker-compose.yaml
Normal file
39
docker/dev/docker-compose.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
services:
|
||||
pg:
|
||||
image: postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_PASSWORD: 'abc@123'
|
||||
POSTGRES_USER: "postgres"
|
||||
POSTGRES_DB: "coal"
|
||||
networks:
|
||||
- dn
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis.conf:/etc/redis/redis.conf
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- dn
|
||||
command:
|
||||
- redis-server
|
||||
- /etc/redis/redis.conf
|
||||
|
||||
|
||||
networks:
|
||||
dn:
|
||||
driver: bridge
|
||||
|
||||
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
redis_data:
|
||||
|
||||
2276
docker/dev/redis.conf
Normal file
2276
docker/dev/redis.conf
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user