mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-24 23:41:21 +08:00
54 lines
818 B
YAML
54 lines
818 B
YAML
services:
|
|
pg:
|
|
image: postgres
|
|
ports:
|
|
- "25432: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:
|
|
- "26379:6379"
|
|
volumes:
|
|
- ./redis.conf:/etc/redis/redis.conf
|
|
- redis_data:/data
|
|
networks:
|
|
- dn
|
|
command:
|
|
- redis-server
|
|
- /etc/redis/redis.conf
|
|
|
|
coal:
|
|
image: coal:master
|
|
networks:
|
|
- dn
|
|
environment:
|
|
PG_HOST: pg
|
|
REDIS_HOST: redis
|
|
volumes:
|
|
- spring_data:/data
|
|
ports:
|
|
- "27456:7456"
|
|
command:
|
|
- --spring.profiles.active=prod
|
|
|
|
networks:
|
|
dn:
|
|
driver: bridge
|
|
|
|
|
|
|
|
volumes:
|
|
pg_data:
|
|
redis_data:
|
|
spring_data:
|
|
|