ezpaarse-project/ezpaarse

View on GitHub
docker-compose.yml

Summary

Maintainability
Test Coverage
# ezpaarse docker-compose.yml dedicated to production
version: '3'

services:

  ezpaarse:
    container_name: ezpaarse
    image: ezpaarseproject/ezpaarse:3.9.4
    build:
      context: .
      args:
        - http_proxy
        - https_proxy
    environment:
      http_proxy:  ${http_proxy}
      https_proxy: ${https_proxy}
      no_proxy: ${no_proxy}
      NODE_ENV: "production"
      EZPAARSE_MONGO_URL: "mongodb://ezpaarse_db:27017/ezpaarse"
    volumes:
      - ./platforms:/opt/ezpaarse/platforms
      - ./middlewares:/opt/ezpaarse/middlewares
      - ./resources:/opt/ezpaarse/resources
      - ./exclusions:/opt/ezpaarse/exclusions
      - ./config.local.json:/opt/ezpaarse/config.local.json
    tty: true         # to have nice debug(...) outputs
    stdin_open: true  # to be able to use CTRL+C to stop the container
    ports:
      - 59599:59599
    depends_on:
      - ezpaarse_db
    restart: unless-stopped

  ezpaarse_db:
    container_name: ezpaarse_db
    image: mongo:3.6.23
    restart: unless-stopped