-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1.33 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
45
46
47
48
49
# Used in GitHub CI.
# Don't use this config to run the service in production.
version: "3.7"
volumes:
texterify-database:
external:
name: texterify-database
texterify-assets:
external:
name: texterify-assets
services:
db:
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
image: postgres:12.2
volumes:
- texterify-database:/var/lib/postgresql/data
app:
image: chrztoph/texterify:${TEXTERIFY_TAG}
environment:
- SECRET_KEY_BASE=abd834a091ca2069a660b50dd50cffa0b9d5f6bd51395da186f07785c14f14bb52109b4d8bb3344cb8eb31ada9dd2a10a3422ef73317c0923ee32a732557faac
- DB_DEV_HOST=db
- DB_DEV_USERNAME=postgres
- DB_TEST_HOST=db
- DB_TEST_USERNAME=postgres
- RAILS_ENV=test
- DEBUG_SECRET=secret
depends_on:
- db
volumes:
- texterify-assets:/var/www/texterify/storage
ports:
- 3000:3000
sidekiq:
image: chrztoph/texterify:${TEXTERIFY_TAG}
environment:
- SECRET_KEY_BASE=abd834a091ca2069a660b50dd50cffa0b9d5f6bd51395da186f07785c14f14bb52109b4d8bb3344cb8eb31ada9dd2a10a3422ef73317c0923ee32a732557faac
- DB_DEV_HOST=db
- DB_DEV_USERNAME=postgres
- DB_TEST_HOST=db
- DB_TEST_USERNAME=postgres
depends_on:
- db
- redis
command: bundle exec sidekiq
redis:
image: redis:6.2.0-alpine