12345678910111213141516171819 |
- version: "3"
- services:
- redis:
- restart: always
- container_name: crowd_redis
- image: "crowd-redis:${REDIS_TAG}"
- command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
- ports:
- - 16379:6379
- # 用户服务
- crowd_user:
- restart: always
- container_name: crowd_user
- image: "crowd-user:${MAINSITE_BACKEND_TAG}"
- depends_on:
- - redis
- ports:
- - 8082:8081
- command: java -jar --spring.profiles.active=dev --spring.redis.password=${REDIS_PASSWORD} mooctest-user-server.jar > nohub.out
|