Created
April 5, 2019 14:43
-
-
Save thsig/9903b28c79a3b87155be70436f22d77f to your computer and use it in GitHub Desktop.
Rails example - garden.yml for postgres service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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