Skip to content

Latest commit

 

History

History
58 lines (57 loc) · 2.07 KB

multiple-compose-files.md

File metadata and controls

58 lines (57 loc) · 2.07 KB

Multiple Compose files overriding examples

Use different config file i.e. config-x.json than the standard two

  • The secrets directory structure will be :
    secrets/
    ├── all-verticles-configs
    │   ├── config-depl.json
    │   ├── config-dev.json
    │   └── config-x.json
    ├── keystore.jks
    └── one-verticle-configs
  • Create a non-git versioned named docker-compose.temp.yml file with following contents:
    version: '3.7'
    networks:
    lip-net:
        driver: bridge
    services:
    lip:
        image: iudx/lip-dev:latest
        volumes:
        - ./secrets/all-verticles-configs/config-x.json:/usr/share/app/secrets/all-verticles-configs/config.json
        ports:
        - "8080:80"
        networks: 
        - lip-net
  • Command to bring up the file server container is :
    docker-compose -f docker-compose.yml -f docker-compose.temp.yml up -d 

Binding the ports of clustered latest ingestion pipeline container to host

  • Create a non-git versioned named docker-compose.temp.yml file with following contents:
    version: '3.7'
    networks:
    overlay-net:
        external: true      
        driver: overlay
    services:
    lip:
        image: iudx/lip-depl:latest
        volumes:
        - ./secrets/all-verticles-configs/config-depl.json:/usr/share/app/secrets/all-verticles-configs/config.json
        ports:
        - "80:80"
        - "9000:9000"
        networks: 
        - overlay-net
    
  • Command to bring up the latest-ingestion-pipeline container is :
    docker-compose -f docker-compose.yml -f docker-compose.temp.yml up -d 

NOTE

  • For overriding other miscellaneous configurations through multiple-compose files i.e. docker-compose.yml and docker-compose.temp.yml, refer here.