Closed Iristyle closed 5 years ago
I'm not sure if we want / need this, but it came in handy while debugging the VOLUME problem. It is nice because it will show expanded env vars and tacks on the volume attributes, but we don't use those all that much. Sample output:
services:
postgres:
dns_search:
- internal
environment:
POSTGRES_DB: puppetdb
POSTGRES_PASSWORD: puppetdb
POSTGRES_USER: puppetdb
expose:
- 5432
healthcheck:
interval: 10s
retries: 6
start_period: 90s
test:
- CMD-SHELL
- psql --username=puppetdb puppetdb -c ''
timeout: 5s
image: postgres:9.6
networks:
default:
aliases:
- postgres.internal
volumes:
- C:\WINDOWS\SERVIC~1\NETWOR~1\AppData\Local\Temp\421j0hbv.xgs\volumes\puppetdb-postgres\data:/var/lib/postgresql/data:rw
- C:\agent\_work\7\s\postgres-custom:/docker-entrypoint-initdb.d:rw
puppet:
dns_search:
- internal
environment:
DNS_ALT_NAMES: puppet,puppet.internal,
PUPPERWARE_ANALYTICS_ENABLED: "true"
PUPPETDB_SERVER_URLS: https://puppetdb.internal:8081
PUPPETSERVER_HOSTNAME: puppet.internal
hostname: puppet.internal
image: puppet/puppetserver:6.4.0
networks:
default:
aliases:
- puppet.internal
ports:
- published: 8140
target: 8140
volumes:
- puppetserver-code:/etc/puppetlabs/code/:rw
- puppetserver-config:/etc/puppetlabs/puppet/:rw
- puppetserver-data:/opt/puppetlabs/server/data/puppetserver/:rw
puppetdb:
depends_on:
- postgres
- puppet
dns_search:
- internal
environment:
PUPPERWARE_ANALYTICS_ENABLED: "true"
PUPPETDB_PASSWORD: puppetdb
PUPPETDB_POSTGRES_HOSTNAME: postgres.internal
PUPPETDB_USER: puppetdb
PUPPETSERVER_HOSTNAME: puppet.internal
hostname: puppetdb.internal
image: puppet/puppetdb
networks:
default:
aliases:
- puppetdb.internal
ports:
- target: 8080
- target: 8081
volumes:
- puppetdb-ssl:/etc/puppetlabs/puppet/ssl/:rw
version: '3.7'
volumes:
puppetdb-ssl: {}
puppetserver-code: {}
puppetserver-config: {}
puppetserver-data: {}