-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (95 loc) · 3.31 KB
/
docker-compose.yml
File metadata and controls
99 lines (95 loc) · 3.31 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: six_steps
POSTGRES_PASSWORD: six_steps_dev
POSTGRES_DB: six_steps_production
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U six_steps"]
interval: 10s
timeout: 5s
retries: 5
mailpit:
image: axllent/mailpit:latest
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP
volumes:
- mailpit_data:/data
web:
image: ghcr.io/better-conversations/6steps:latest
ports:
- "80:80"
depends_on:
db:
condition: service_healthy
mailpit:
condition: service_started
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://six_steps:six_steps_dev@db:5432/six_steps_production
- RAILS_MASTER_KEY=0123456789abcdef0123456789abcdef
- SECRET_KEY_BASE=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2
- RAILS_LOG_TO_STDOUT=1
- RAILS_SERVE_STATIC_FILES=1
- ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4
- ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1
- ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3
# Email via Mailpit
- SMTP_ADDRESS=mailpit
- SMTP_PORT=1025
- MAILER_FROM_ADDRESS=noreply@localhost
# Application settings
- FORCE_SSL=false
- APPLICATION_HOST=localhost
- APPLICATION_PROTOCOL=http
# Admin bootstrap (only used when User.count == 0)
- ADMIN_EMAIL=admin@localhost
- ADMIN_PASSWORD=change_me_immediately
- ADMIN_REGION=uk
# Analytics (optional)
# - UMAMI_WEBSITE_ID=your-website-id
volumes:
- rails_storage:/rails/storage
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/up || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
jobs:
image: ghcr.io/better-conversations/6steps:latest
command: bundle exec rails solid_queue:start
depends_on:
db:
condition: service_healthy
environment:
- RAILS_ENV=production
- DATABASE_URL=postgresql://six_steps:six_steps_dev@db:5432/six_steps_production
- RAILS_MASTER_KEY=0123456789abcdef0123456789abcdef
- SECRET_KEY_BASE=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2
- RAILS_LOG_TO_STDOUT=1
- RAILS_SERVE_STATIC_FILES=1
- ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4
- ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1
- ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3
# Email via Mailpit
- SMTP_ADDRESS=mailpit
- SMTP_PORT=1025
- MAILER_FROM_ADDRESS=noreply@localhost
# Application settings
- FORCE_SSL=false
- APPLICATION_HOST=localhost
- APPLICATION_PROTOCOL=http
# Admin bootstrap (only used when User.count == 0)
- ADMIN_EMAIL=admin@localhost
- ADMIN_PASSWORD=change_me_immediately
- ADMIN_REGION=uk
volumes:
rails_storage:
postgres_data:
mailpit_data: