Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.96 KB

README.md

File metadata and controls

38 lines (35 loc) · 1.96 KB

CentOS Consul Docker (Consul Container)

Build Status GitHub issues GitHub forks GitHub stars GitHub license

Docker Compose

  • Copy env-example to .env
  • Build & running
    docker-compose build && docker-compose up
    
  • Force recreate container
    docker-compose build && docker-compose up --force-recreate consul
    
  • Running container only
    docker-compose up
    

Environments

You can run docker-compose for different environment with selected containers

  • Copy env.sh.example to env.sh
  • Change to execute script
    chmod a+x env.sh
    
  • Change environment in env.sh file
    ENV="development"            # (use: "development" or "production" as selected environment)
    CONTAINER_PRODUCTION="..."   # (selected containers will be run in production environment)
    CONTAINER_DEVELOPMENT="..."  # (selected containers will be run in development environment)
    
  • Running script
    ./env.sh
    

License

GNU General Public License v2