-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-build.yml
71 lines (68 loc) · 1.37 KB
/
docker-compose-build.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
69
70
71
version: '3.3'
services:
app: &app
image: decidim-ocl:latest
build:
context: .
dockerfile: ./Dockerfile
volumes:
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
- db-init:/db-init
depends_on:
- pg
- cache
- mail
- worker
ports:
- 3000:3000
environment:
- PORT=3000
- RAILS_DB_HOST=pg
- RAILS_ENV=production
- RAILS_MAIL_DELIVERY_CONFIG=address:mail,port:1025
- RAILS_MEMCACHED_HOST=cache
- RAILS_SERVE_STATIC_FILES=yes
- SECRET_KEY_BASE=TEST
- SENTRY_CURRENT_ENV=production
depends_on:
- pg
- cache
- mail
- worker
pg:
image: postgres
environment:
- POSTGRES_USER=decidim_ocl
- POSTGRES_PASSWORD=7UhEIvi9wFymva3
- POSTGRES_DB=decidim_ocl_development
ports:
- 5432:5432
volumes:
- pg-data:/var/lib/postgresql/data
cache:
image: memcached:1.5-alpine
command: [ memcached, -l, '0.0.0.0', -p, '11211' ]
adminer:
image: adminer
ports:
- '8080:8080'
links:
- pg:db
depends_on:
- pg
mail:
image: schickling/mailcatcher:latest
ports:
- '1080:1080'
worker:
<<: *app
depends_on: []
ports: []
entrypoint: []
command: [ rake, 'jobs:work' ]
volumes:
node_modules: {}
bundle: {}
pg-data: {}
db-init: {}