forked from decidim-archive/demo.decidim.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (44 loc) · 926 Bytes
/
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
version: '3.4'
services:
pg:
image: postgres
env_file:
- .env
volumes:
- pg-data:/var/lib/postgresql/data
app: &app_base
build:
context: .
args:
RUBY_VERSION: '2.5.3'
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
user: "${USER_ID}:${GROUP_ID}"
volumes:
- .:/usr/src/app
- app_assets:/usr/local/src/app/public/assets/
- app_file_storage:/app/public/system/
- app_tmp_cache:/usr/local/src/app/tmp/cache
- bundle:/usr/local/bundle
- node_modules:/usr/src/app/node_modules
env_file:
- .env
ports:
- ${PORT}:${PORT}
links:
- pg
command: bundle exec puma
worker:
<<: *app_base
command: bundle exec rails jobs:work
ports: []
depends_on:
- app
- pg
volumes:
app_assets:
app_file_storage:
app_tmp_cache:
bundle:
node_modules:
pg-data: