2020-08-26 00:38:06 +03:00
|
|
|
services:
|
|
|
|
db:
|
2022-01-03 12:21:42 +02:00
|
|
|
image: postgres:13
|
2020-08-26 00:38:06 +03:00
|
|
|
environment:
|
2022-01-03 12:21:42 +02:00
|
|
|
POSTGRES_DB: ${DATABASE_NAME:-tracks}
|
|
|
|
POSTGRES_PASSWORD: password
|
2020-08-26 00:38:06 +03:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: ..
|
2024-07-18 17:12:31 +03:00
|
|
|
target: test
|
|
|
|
args:
|
|
|
|
RUBY_VERSION: ${RUBY_VERSION}
|
2020-08-26 00:38:06 +03:00
|
|
|
environment:
|
2024-10-23 01:52:02 +03:00
|
|
|
# These are set in script/cibuild, so we need to pass-thru them.
|
2020-08-26 00:38:06 +03:00
|
|
|
RAILS_ENV: $RAILS_ENV
|
|
|
|
DATABASE_NAME: $DATABASE_NAME
|
2022-01-03 12:21:42 +02:00
|
|
|
DATABASE_USERNAME: postgres
|
|
|
|
DATABASE_PASSWORD: password
|
|
|
|
DATABASE_TYPE: postgresql
|
|
|
|
DATABASE_ENCODING: unicode
|
|
|
|
DATABASE_PORT: 5432
|
2020-08-26 00:38:06 +03:00
|
|
|
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
|