mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Example docker-compose.yml for nodes and registrycache
This commit is contained in:
parent
8939ca4f65
commit
1f7cf5c172
80
ci/docker-compose.yml
Normal file
80
ci/docker-compose.yml
Normal file
|
@ -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
|
22
ci/registryproxy.yml
Normal file
22
ci/registryproxy.yml
Normal file
|
@ -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:
|
Loading…
Reference in New Issue
Block a user