-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcodeship-services.yml
More file actions
27 lines (27 loc) · 912 Bytes
/
codeship-services.yml
File metadata and controls
27 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Docker Compose-like syntax, see here for details:
# https://documentation.codeship.com/pro/builds-and-configuration/services/
app:
build:
image: codeship/ruby-rails-quickstart
dockerfile: Dockerfile
environment:
# env var touchpoints for Rails app -- https://github.com/codeship-library/ruby-rails-quickstart/blob/master/app/config/database.yml
PGHOST: pg-db
PGUSER: sample_postgres_user
PGPASSWORD: sample_postgres_password
PGDATABASE: postgres
RAILS_ENV: test
depends_on:
- pg-db
cached: true
pg-db:
image: healthcheck/postgres:alpine
environment:
# env vars defined per instructions on PostgreSQL Docker Hub page -- https://hub.docker.com/_/postgres/
POSTGRES_USER: sample_postgres_user
POSTGRES_PASSWORD: sample_postgres_password
POSTGRES_DATABASE: postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
busybox:
image: busybox