-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
44 lines (43 loc) · 1.07 KB
/
docker-compose.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
34
35
36
37
38
39
40
41
42
43
44
# Used in GitHub CI.
# Don't use this config to run the service in production.
version: '3'
volumes:
database: {}
services:
db:
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
image: postgres:14.12
volumes:
- database:/var/lib/postgresql/data
app:
environment:
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- DB_TEST_HOST=${DB_TEST_HOST}
- DB_TEST_USERNAME=${DB_TEST_USERNAME}
image: chrztoph/texterify:test
build:
context: .
args:
SENTRY_SOURCE_MAPS_ORGANIZATION: texterify
COMMIT_HASH: ${GITHUB_SHA}
PROPRIETARY_MODE: "true"
RAILS_ENV_ARG: test
NODE_ENV_ARG: production
dockerfile: Dockerfile
depends_on:
- db
volumes:
- ./coverage:/var/www/texterify/coverage
sidekiq:
image: chrztoph/texterify:test
environment:
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- DB_TEST_HOST=${DB_TEST_HOST}
- DB_TEST_USERNAME=${DB_TEST_USERNAME}
depends_on:
- db
- redis
command: bundle exec sidekiq
redis:
image: redis:6.2.0-alpine