docker-compose-for-dev.yml 563 B

12345678910111213141516171819
  1. version: "3"
  2. services:
  3. redis:
  4. restart: always
  5. container_name: crowd_redis
  6. image: "crowd-redis:${REDIS_TAG}"
  7. command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}"]
  8. ports:
  9. - 16379:6379
  10. # 用户服务
  11. crowd_user:
  12. restart: always
  13. container_name: crowd_user
  14. image: "crowd-user:${MAINSITE_BACKEND_TAG}"
  15. depends_on:
  16. - redis
  17. ports:
  18. - 8082:8081
  19. command: java -jar --spring.profiles.active=dev --spring.redis.password=${REDIS_PASSWORD} mooctest-user-server.jar > nohub.out