Skip to content
Snippets Groups Projects
  • nimrod's avatar
    a93ecd0d
    Compose: Small fix. · a93ecd0d
    nimrod authored
    The network is shared and now Compose checks the labels (set by the
    first project that creates the network). So instead, now the network is
    created with Ansible and is external.
    a93ecd0d
    History
    Compose: Small fix.
    nimrod authored
    The network is shared and now Compose checks the labels (set by the
    first project that creates the network). So instead, now the network is
    created with Ansible and is external.
docker-compose.yml 926 B
---
version: '3.7'
services:
  registry:
    environment:
      REGISTRY_STORAGE_DELETE_ENABLED: "true"
    healthcheck:
      test:
        - CMD-SHELL
        - >-
          wget
          --spider
          http://127.0.0.1:5000/v2/_catalog
          || exit 1
    image: registry.hub.docker.com/library/registry:2.8.3
    restart: always
    volumes:
      - "registry:/var/lib/registry"

  reg:
    command:
      - "server"
      - "--registry"
      - "registry.shore.co.il"
      - "--interval"
      - "5m"
    healthcheck:
      test:
        - CMD-SHELL
        - >-
          wget
          --spider
          http://127.0.0.1:8080/
          || exit 1
    image: registry.shore.co.il/reg:v0.16.1
    restart: always

  crond:
    build:
      context: crond/
    restart: always
    volumes:
      - /run/docker.sock:/run/docker.sock

volumes:
  registry:

networks:
  default:
    name: shore
    external: true