Skip to content

Instantly share code, notes, and snippets.

@ram-devsecops
Created August 20, 2017 14:45
Show Gist options
  • Save ram-devsecops/e22facdce82f0d3217d657a8186daee9 to your computer and use it in GitHub Desktop.
Save ram-devsecops/e22facdce82f0d3217d657a8186daee9 to your computer and use it in GitHub Desktop.
{
"containerDefinitions": [
{
"essential": true,
"image": "vmware/harbor-adminserver:v1.2.0-rc1",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "adminserver"
}
},
"mountPoints": [
{
"containerPath": "/etc/adminserver/config",
"sourceVolume": "DataConfig"
},
{
"containerPath": "/etc/adminserver/key",
"sourceVolume": "DataSecretKey"
},
{
"containerPath": "/data",
"sourceVolume": "Data"
}
],
"cpu": 10,
"memoryReservation": 64,
"name": "adminserver"
},
{
"essential": true,
"image": "vmware/harbor-jobservice:v1.2.0-rc1",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "jobservice"
}
},
"mountPoints": [],
"cpu": 10,
"memoryReservation": 64,
"name": "jobservice"
},
{
"essential": true,
"image": "vmware/harbor-log:v1.2.0-rc1",
"mountPoints": [
{
"containerPath": "/var/log/docker",
"sourceVolume": "VarLogHarbor"
}
],
"name": "log",
"cpu": 10,
"memoryReservation": 64,
"portMappings": [
{
"containerPort": 514,
"hostPort": "127.0.0.1:1514",
"protocol": "tcp"
}
]
},
{
"essential": true,
"image": "vmware/harbor-db:v1.2.0-rc1",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "mysql"
}
},
"mountPoints": [
{
"containerPath": "/var/lib/mysql",
"sourceVolume": "_VarLibMysql"
}
],
"cpu": 10,
"memoryReservation": 64,
"name": "mysql"
},
{
"essential": true,
"image": "vmware/nginx-photon:1.11.13",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "proxy"
}
},
"mountPoints": [
{
"containerPath": "/etc/nginx",
"sourceVolume": "_CommonConfigNginx"
}
],
"cpu": 10,
"memoryReservation": 64,
"name": "proxy",
"portMappings": [
{
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp"
},
{
"containerPort": 443,
"hostPort": 443,
"protocol": "tcp"
},
{
"containerPort": 4443,
"hostPort": 4443,
"protocol": "tcp"
}
]
},
{
"command": [
"serve",
"/etc/registry/config.yml"
],
"environment": [
{
"name": "GODEBUG",
"value": "netdns=cgo"
}
],
"essential": true,
"image": "vmware/registry:2.6.2-photon",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "registry"
}
},
"cpu": 10,
"memoryReservation": 64,
"mountPoints": [
{
"containerPath": "/etc/registry",
"sourceVolume": "_CommonConfigRegistry"
},
{
"containerPath": "/storage",
"sourceVolume": "_DataRegistry"
}
],
"name": "registry"
},
{
"essential": true,
"image": "vmware/harbor-ui:v1.2.0-rc1",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "ui"
}
},
"cpu": 10,
"memoryReservation": 64,
"mountPoints": [
{
"containerPath": "/etc/ui/ca",
"sourceVolume": "DataCa_Download"
},
{
"containerPath": "/etc/ui/app.conf",
"sourceVolume": "Common_UiApp"
},
{
"containerPath": "/etc/ui/private_key.pem",
"sourceVolume": "Common_UiPrivate"
},
{
"containerPath": "/etc/ui/key",
"sourceVolume": "Data_SecretKey"
},
{
"containerPath": "/etc/ui/token",
"sourceVolume": "DataPsc"
}
],
"name": "ui"
},
{
"command": [
"-config",
"/config/config.yaml"
],
"essential": true,
"image": "vmware/clair:v2.0.1-photon",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "clair"
}
},
"cpu": 10,
"memoryReservation": 64,
"mountPoints": [
{
"containerPath": "/config",
"sourceVolume": "_CommonConfigClair"
}
],
"name": "clair"
},
{
"essential": true,
"image": "vmware/postgresql:9.6.3-photon",
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "tcp://127.0.0.1:1514",
"tag": "clair-db"
}
},
"cpu": 10,
"memoryReservation": 64,
"mountPoints": [
{
"containerPath": "/docker-entrypoint-initdb.d",
"sourceVolume": "_CommonConfigClairPostgresql-Init_D"
},
{
"containerPath": "/var/lib/postgresql/data",
"sourceVolume": "DataClair-Db"
}
],
"name": "postgres"
}
],
"family": "ecs-deployment",
"volumes": [
{
"host": {
"sourcePath": "/data/database"
},
"name": "_VarLibMysql"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/nginx"
},
"name": "_CommonConfigNginx"
},
{
"host": {
"sourcePath": "/var/log/harbor/"
},
"name": "VarLogHarbor"
},
{
"host": {
"sourcePath": "/data/registry"
},
"name": "_DataRegistry"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/registry/"
},
"name": "_CommonConfigRegistry"
},
{
"host": {
"sourcePath": "/data/config/"
},
"name": "DataConfig"
},
{
"host": {
"sourcePath": "/data/"
},
"name": "Data"
},
{
"host": {
"sourcePath": "/data/secretkey"
},
"name": "DataSecretKey"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/ui/app.conf"
},
"name": "Common_UiApp"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/ui/private_key.pem"
},
"name": "Common_UiPrivate"
},
{
"host": {
"sourcePath": "/data/secretkey"
},
"name": "Data_SecretKey"
},
{
"host": {
"sourcePath": "/data/ca_download/"
},
"name": "DataCa_Download"
},
{
"host": {
"sourcePath": "/data/psc/"
},
"name": "DataPsc"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/clair/postgresql-init.d/"
},
"name": "_CommonConfigClairPostgresql-Init_D"
},
{
"host": {
"sourcePath": "/data/clair-db"
},
"name": "DataClair-Db"
},
{
"host": {
"sourcePath": "/opt/harbor/common/config/clair"
},
"name": "_CommonConfigClair"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment