-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yml
33 lines (31 loc) · 1.02 KB
/
docker-compose.dev.yml
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
28
29
30
31
32
33
version: '3.4'
services:
dev:
build:
context: ./
dockerfile: Dockerfile.development
args:
username: ${USER}
uid: ${UID}
command: "rails s"
depends_on:
- db
ports:
- "3001:3000"
environment:
- DB_URL="postgresql://${USER}:${POSTGRES_PASSWORD:-automation-calculator-password}@db:5432/automation-calculator-development"
- RAILS_ENV=${RAILS_ENV:-test}
- RAILS_SERVER_PORT=3000
- SECRET_KEY_BASE=9a9a13734ecf8dda1157caedcd7ee7d8f1aac8bd7b53ef40f6f065ceb0e0d89672965be4c1a36ea223925f7f9075cb56c6c9711e9b273fb64ed9e3e5801c81f3
- SHORT_COMMIT_HASH=4ba60c3
- USER=${USER}
user: ${USER}
volumes:
- ./:/usr/src/app
- ./config/database.yml.docker:/usr/src/app/config/database.yml
working_dir: /usr/src/app
db_client:
command: postgresql://${USER}:automation-calculator-password@db:5432/automation-calculator-development
container_name: db_client
entrypoint: psql
image: jbergknoff/postgresql-client:latest