Skip to content

Instantly share code, notes, and snippets.

@thsig
Created April 5, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thsig/9903b28c79a3b87155be70436f22d77f to your computer and use it in GitHub Desktop.
Save thsig/9903b28c79a3b87155be70436f22d77f to your computer and use it in GitHub Desktop.
Rails example - garden.yml for postgres service
kind: Module
description: Postgres container for storing voting results
type: container
name: postgres
image: postgres:9.4
Services:
- name: postgres
volumes: # A persistent volume for the data.
- name: data
containerPath: /db-data
ports: # Expose the default Postgres port
- name: db
containerPort: 5432
healthCheck:
command: [ psql, -w, -U, postgres, -d, postgres, -c, "SELECT 1" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment