-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
64 lines (61 loc) · 1.23 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.8"
x-app: &app_base
depends_on:
- db
- redis
image: ${IMAGE_NAME}
environment:
- DATABASE_URL=postgres://postgres:password@db
- RAILS_ENV
- RACK_ENV
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL
- AUTH_SECRET_TOKEN
- MAILER_SENDER_ADDRESS
- PASSWORD_RECOVERY_LINK_TEMPLATE
build:
context: .
args:
- BUNDLE_WITHOUT="${BUNDLE_WITHOUT}"
- BUNDLER_VERSION=2.4.13
- FOLDERS_TO_REMOVE=""
links:
- db
volumes:
- ruby-bundle:/usr/local/bundle
services:
db:
image: postgres:15-alpine
environment:
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
mailcatcher:
image: schickling/mailcatcher
ports:
- "1025:1025"
- "1080:1080"
redis:
image: redis:7.0.11-alpine
sysctls:
- net.core.somaxconn=511
app:
<<: *app_base
stdin_open: true
tty: true
depends_on:
- mailcatcher
ports:
- "3000:3000"
command: bin/docker-entrypoint
sidekiq:
<<: *app_base
depends_on:
- app
environment:
- REDIS_URL
command: sh -c './bin/wait-for app:3000 -- bundle exec sidekiq'
volumes:
ruby-bundle:
db-data: