diff --git a/ci/docker-compose.yml b/ci/docker-compose.yml new file mode 100644 index 00000000..0941726c --- /dev/null +++ b/ci/docker-compose.yml @@ -0,0 +1,80 @@ +version: '2.1' + +networks: + net: + driver: bridge + +services: + + registrycache: + image: registry:2 + container_name: registrycache + volumes: + - /path/on/host/registryproxy.yml:/etc/docker/registry/config.yml + - /path/on/host/registry:/var/lib/registry + networks: + - net + restart: unless-stopped + + buildkite1: + image: authelia/buildkite + container_name: buildkite1 + privileged: true + volumes: + - /path/on/host/docker:/buildkite/.docker + - /path/on/host/ssh:/buildkite/.ssh + - /path/on/host/go:/buildkite/.go + - /path/on/host/hooks:/buildkite/hooks + networks: + - net + restart: unless-stopped + environment: + - BUILDKITE_AGENT_NAME=named-node-1 + - BUILDKITE_AGENT_TOKEN= + - BUILDKITE_AGENT_TAGS= + - BUILDKITE_AGENT_PRIORITY= + - PUID=1000 + - PGID=1000 + - TZ=Australia/Melbourne + + buildkite2: + image: authelia/buildkite + container_name: buildkite2 + privileged: true + volumes: + - /path/on/host/docker:/buildkite/.docker + - /path/on/host/ssh:/buildkite/.ssh + - /path/on/host/go:/buildkite/.go + - /path/on/host/hooks:/buildkite/hooks + networks: + - net + restart: unless-stopped + environment: + - BUILDKITE_AGENT_NAME=named-node-2 + - BUILDKITE_AGENT_TOKEN=tokenhere + - BUILDKITE_AGENT_TAGS= + - BUILDKITE_AGENT_PRIORITY= + - PUID=1000 + - PGID=1000 + - TZ=Australia/Melbourne + + buildkite3: + image: authelia/buildkite + container_name: buildkite3 + privileged: true + volumes: + - /path/on/host/docker:/buildkite/.docker + - /path/on/host/ssh:/buildkite/.ssh + - /path/on/host/go:/buildkite/.go + - /path/on/host/hooks:/buildkite/hooks + networks: + - net + restart: unless-stopped + environment: + - BUILDKITE_AGENT_NAME=named-node-3 + - BUILDKITE_AGENT_TOKEN=tokenhere + - BUILDKITE_AGENT_TAGS= + - BUILDKITE_AGENT_PRIORITY= + - PUID=1000 + - PGID=1000 + - TZ=Australia/Melbourne \ No newline at end of file diff --git a/ci/registryproxy.yml b/ci/registryproxy.yml new file mode 100644 index 00000000..b46e6f29 --- /dev/null +++ b/ci/registryproxy.yml @@ -0,0 +1,22 @@ +version: 0.1 +log: + fields: + service: registry +storage: + cache: + blobdescriptor: inmemory + filesystem: + rootdirectory: /var/lib/registry +http: + addr: :5000 + headers: + X-Content-Type-Options: [nosniff] +health: + storagedriver: + enabled: true + interval: 10s + threshold: 3 +proxy: + remoteurl: https://registry-1.docker.io + username: + password: \ No newline at end of file