39 lines
888 B
YAML
39 lines
888 B
YAML
- name: init
|
|
image: docker.io/library/busybox
|
|
command:
|
|
- chown
|
|
- '-R'
|
|
- '-v'
|
|
- '8429:8429'
|
|
- '/data'
|
|
essential: false
|
|
readonlyRootFilesystem: true
|
|
mountPoints:
|
|
- sourceVolume: vmagent-data
|
|
containerPath: /data
|
|
logConfiguration:
|
|
logDriver: awslogs
|
|
options:
|
|
awslogs-group: ecs-blackbox
|
|
awslogs-stream-prefix: vmagent
|
|
|
|
- name: vmagent
|
|
image: docker.io/victoriametrics/vmagent
|
|
command:
|
|
- '-remoteWrite.url=https://metrics.pyrocufflink.blue/insert/1/prometheus/api/v1/write'
|
|
- '-remoteWrite.tmpDataPath=/data'
|
|
essential: true
|
|
user: '8429:8429'
|
|
readonlyRootFilesystem: true
|
|
mountPoints:
|
|
- sourceVolume: vmagent-data
|
|
containerPath: /data
|
|
logConfiguration:
|
|
logDriver: awslogs
|
|
options:
|
|
awslogs-group: ecs-blackbox
|
|
awslogs-stream-prefix: vmagent
|
|
dependsOn:
|
|
- containerName: init
|
|
condition: SUCCESS
|