mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Master Module - Add registry docker
This commit is contained in:
@@ -47,7 +47,7 @@ so-aptcacherng:
|
|||||||
# Create the config directory for the docker registry
|
# Create the config directory for the docker registry
|
||||||
dockerregistryconfdir:
|
dockerregistryconfdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/conf/docker-registry
|
- name: /opt/so/conf/docker-registry/etc
|
||||||
- user: 939
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
@@ -60,6 +60,19 @@ dockerregistrylogdir:
|
|||||||
- makedirs: true
|
- makedirs: true
|
||||||
|
|
||||||
# Copy the config
|
# Copy the config
|
||||||
|
dockerregistryconf:
|
||||||
|
file.managed:
|
||||||
|
- name: /opt/so/conf/docker-registry/etc/config.yml
|
||||||
|
- source: salt://master/files/registry/config.yml
|
||||||
|
|
||||||
# Install the registry container
|
# Install the registry container
|
||||||
|
so-dockerregistry:
|
||||||
|
docker_container.running:
|
||||||
|
- image: registry:2
|
||||||
|
- hostname: so-registry
|
||||||
|
- port_bindings:
|
||||||
|
- 0.0.0.0:5000:5000
|
||||||
|
- binds:
|
||||||
|
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user