Use Pulumi's Docker provider to deploy containers locally and remotely.
# default destination and stack pulumi org set-default <my_org> # new project (empty directory other than .git) pulumi new # manage and view state pulumi stack init dev # tf analogues pulumi preview pulumi up pulumi down # info pulumi about # project config (Pulumi.yaml) pulumi config
# directory mypy . # file mypy __main__.py
-
Replace fake creds in services.py with environment variables
-
Add more outputs (cf.
mongo_container_name
) -
Research if it's possible to use both
unix:///var/run/docker.sock
andssh://user@remote-host:22
in the Pulumi config -
Set registry creds to use other than
docker.io
/ access private registryDOCKER_REGISTRY_USER
DOCKER_REGISTRY_PASS
-
Local containers
- prometheus and grafana
-
Remote containers (prometheus exporters)
Name Image Port node "prom/node-exporter:latest" 9100 mongodb "percona/mongodb_exporter:0.40" 9216 redis "oliver006/redis_exporter:latest" 9121 elasticsearch "quay.io/prometheuscommunity/elasticsearch-exporter:latest" 9114 kafka "danielqsj/kafka-exporter:latest" 9308 -
Add tests