Skip to content

You know you wanted it: Service Groups

Pre-release
Pre-release
Compare
Choose a tag to compare
@vovimayhem vovimayhem released this 20 Jul 23:47
· 10 commits to master since this release

New Feature:

Now you can add labels to services using the com.icalialabs.plis.group so you can summon them by group name. Take, for example:

version: "3.1"

services:
  postgres:
    image: postgres:9-alpine
    labels:
      com.icalialabs.plis.group: database backend relational
  redis:
    image: redis:3-alpine
    labels:
      com.icalialabs.plis.group: database backend
  nginx:
    image: nginx:alpine
    labels:
      com.icalialabs.plis.group: frontend

With plis start [group-or-service-name] you can bring up the containers matching the given groups, in addition to single services:

# Start 'database' group, which includes postgres and redis:
plis start database 

# Start 'frontend' group:
plis start frontend

# Start 'frontend' group, along with 'redis' service:
plis start frontend redis

Enjoy!