timhaley94/holdem

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
version: "3.8"
services:
  mongo:
    image: mongo:4.0.20-xenial
    restart: always
    ports:
      - 27017:27017
  redis:
    image: redis:6.0.6
    expose:
      - 6379
  server:
    build: server/
    volumes:
      - ./server:/app
      - /app/node_modules
    environment:
      - NODE_ENV=development
    depends_on:
      - redis
      - mongo
  haproxy:
    image: eeacms/haproxy:1.8-1.5
    depends_on:
      - server
    ports:
      - 8080:8080
      - 8081:1936
    environment:
      FRONTEND_PORT: 8080
      BACKENDS: server
      BACKENDS_PORT: 80
      DNS_ENABLED: "True"
      HTTPCHK: GET /ping
      LOG_LEVEL: info
  client:
    stdin_open: true
    build: client/
    volumes:
      - ./client/src:/app/src
      - ./client/public:/app/public
      - /app/node_modules
    ports:
      - 3000:3000
      - 3001:3001
    depends_on:
      - haproxy