-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 902 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 902 Bytes
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
services:
web:
build: .
ports:
- '3000:80'
environment:
RAILS_ENV: production
NODE_ENV: production
APP_HOST: http://localhost:3000
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
# Use DO Spaces in prod compose to validate encrypted credentials end-to-end
ACTIVE_STORAGE_SERVICE: do_spaces
DISABLE_FORCE_SSL: '1'
volumes:
- ./config/master.key:/rails/config/master.key:ro
- storage:/rails/storage
worker:
build: .
command: bash -lc "./bin/rails db:prepare && ./bin/rails solid_queue:start"
environment:
RAILS_ENV: production
NODE_ENV: production
APP_HOST: http://web
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
ACTIVE_STORAGE_SERVICE: do_spaces
DISABLE_FORCE_SSL: '1'
volumes:
- ./config/master.key:/rails/config/master.key:ro
- storage:/rails/storage
volumes:
storage: