Skip to content

Instantly share code, notes, and snippets.

Created April 5, 2019 14:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Rails example - garden.yml for postgres service
kind: Module
description: Postgres container for storing voting results
type: container
name: postgres
image: postgres:9.4
- name: postgres
volumes: # A persistent volume for the data.
- name: data
containerPath: /db-data
ports: # Expose the default Postgres port
- name: db
containerPort: 5432
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