-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1 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
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
ports:
- "5432:5432"
app:
image: chrztoph/texterify:${TEXTERIFY_TAG}
env_file:
- secrets.env
- .env
depends_on:
- db
volumes:
- texterify-assets:/var/www/texterify/storage
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
args:
BUILDER_IMAGE: chrztoph/texterify:${TEXTERIFY_TAG}
depends_on:
- app
ports:
- 80:80
sidekiq:
image: chrztoph/texterify:${TEXTERIFY_TAG}
env_file:
- secrets.env
- .env
depends_on:
- db
- redis
command: bundle exec sidekiq
volumes:
- texterify-assets:/var/www/texterify/storage
redis:
image: redis:6.2.0-alpine