tracks/test-envs/docker-compose-sqlite.yml

21 lines
534 B
YAML
Raw Permalink Normal View History

2020-08-26 00:38:06 +03:00
services:
web:
build:
context: ..
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: "/app/db/db.sqlite"
2022-01-03 12:21:42 +02:00
DATABASE_TYPE: sqlite3
2020-08-26 00:38:06 +03:00
volumes:
2024-07-19 00:36:42 +03:00
- sqlite:/app/db:Z
2020-08-26 00:38:06 +03:00
- ${VOLUME:-..}/config/database.docker.yml:/app/config/database.yml:Z
- ${VOLUME:-..}/config/site.docker.yml:/app/config/site.yml:Z
ports:
- 3000:3000
volumes:
sqlite: {}