mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
28 lines
763 B
YAML
28 lines
763 B
YAML
services:
|
|
db:
|
|
image: postgres:13
|
|
environment:
|
|
POSTGRES_DB: ${DATABASE_NAME:-tracks}
|
|
POSTGRES_PASSWORD: password
|
|
web:
|
|
build:
|
|
context: ..
|
|
target: test
|
|
args:
|
|
RUBY_VERSION: ${RUBY_VERSION}
|
|
environment:
|
|
# These are set in script/cibuild, so we need to pass-thru them.
|
|
RAILS_ENV: $RAILS_ENV
|
|
DATABASE_NAME: $DATABASE_NAME
|
|
DATABASE_USERNAME: postgres
|
|
DATABASE_PASSWORD: password
|
|
DATABASE_TYPE: postgresql
|
|
DATABASE_ENCODING: unicode
|
|
DATABASE_PORT: 5432
|
|
volumes:
|
|
- ${VOLUME:-..}/config/database.docker.yml:/app/config/database.yml:Z
|
|
- ${VOLUME:-..}/config/site.docker.yml:/app/config/site.yml:Z
|
|
ports:
|
|
- 3000:3000
|
|
depends_on:
|
|
- db
|