-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
68 lines (64 loc) · 1.47 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
65
66
67
68
version: "3.8"
services:
web:
platform: "linux/amd64"
build:
context: .
depends_on:
database:
condition: service_healthy
redis:
condition: service_started
ports:
- "3000:3000"
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
environment:
RAILS_ENV: development
DATABASE_URL: "postgresql://postgres:postgres@database/nwspk_development"
REDIS_URL: "redis://redis:6379/0"
SECRET_KEY_BASE: "xxx"
CANONICAL_URL: "http://localhost:3000"
SEND_REMINDERS: 1
SMTP_PASSWORD: "xxx"
SMTP_SERVER: "smtp.mailgun.org"
SMTP_USER: "xxx"
STRIPE_KEY: "sk_xxx"
STRIPE_PUBLIC_KEY: "pk_xxx"
STRIPE_TAX_RATE_ID: "txr_xxx"
STRIPE_WEBHOOK_SECRET: "whsec_xxx"
database:
image: postgres:14
environment:
- POSTGRES_PASSWORD=postgres
healthcheck:
test: "pg_isready -U postgres"
interval: 5s
timeout: 10s
retries: 120
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
platform: "linux/amd64"
image: redis:5.0
sidekiq:
platform: "linux/amd64"
build:
context: .
depends_on:
- web
- database
- redis
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
environment:
RAILS_ENV: development
REDIS_URL: "redis://redis:6379/0"
entrypoint: ./sidekiq-entrypoint.sh
volumes:
gem_cache:
postgres_data: